From 02acd9c30c85fc2f4e252b57660b74e990821b22 Mon Sep 17 00:00:00 2001 From: nodist Date: Sun, 30 Aug 2026 09:36:50 -0400 Subject: export fib lambdas --- fib.kpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fib.kpl b/fib.kpl index 1ce17e6..224e834 100644 --- a/fib.kpl +++ b/fib.kpl @@ -1,7 +1,7 @@ // Fibonacci Example -fib_recursive : `{[I64 n] +`export fib_recursive : `{[I64 n] ? n < 0 { .error $ "n Cannot Be Negative" } fib : `{[I64 n] ? { @@ -13,7 +13,7 @@ fib_recursive : `{[I64 n] fib `sync n } -fib_loop : `{[I64 n] +`export fib_loop : `{[I64 n] ? n < 0 { `return.error $ "n Cannot Be Negative" } a : 0 b : 1 @@ -25,7 +25,7 @@ fib_loop : `{[I64 n] a } -fib_array : `{[I64 n] +`export fib_array : `{[I64 n] ? { n < 0 { `return.error $ "n Cannot Be Negative" } n > 1 { n -: 1 } -- cgit v1.2.3