summaryrefslogtreecommitdiff
path: root/doc/fib.nxs
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2023-01-06 18:53:42 -0800
committerPreston Pan <preston@nullring.xyz>2023-01-06 18:53:42 -0800
commit0771dd0e1a143c17920d65d5de8d010aa433ce1c (patch)
tree1e6ea87bf5b2673bf810db502050e55d66a95f97 /doc/fib.nxs
parentf32cb9a129ebf1755ea300cf311f487c5b9f0f04 (diff)
add comments
Diffstat (limited to 'doc/fib.nxs')
-rw-r--r--doc/fib.nxs4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/fib.nxs b/doc/fib.nxs
new file mode 100644
index 0000000..130f99d
--- /dev/null
+++ b/doc/fib.nxs
@@ -0,0 +1,4 @@
+;; Author: Andrei S
+(bind fib (lambda (x) ;; xth fib number
+(if (< x 2) x (+ (fib (- x 1)) (fib (- x 2))))))
+(fib 7)