From 1b7a46cc7cca246f206192dac6695d1cc85cb8c8 Mon Sep 17 00:00:00 2001 From: nodist Date: Thu, 3 Sep 2026 12:46:38 -0400 Subject: add return where required in fib_rec --- fib.kpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fib.kpl') diff --git a/fib.kpl b/fib.kpl index 224e834..ac517dc 100644 --- a/fib.kpl +++ b/fib.kpl @@ -2,7 +2,7 @@ // Fibonacci Example `export fib_recursive : `{[I64 n] - ? n < 0 { .error $ "n Cannot Be Negative" } + ? n < 0 { `return.error $ "n Cannot Be Negative" } fib : `{[I64 n] ? { n = 0 { 0 } -- cgit v1.2.3