From 0771dd0e1a143c17920d65d5de8d010aa433ce1c Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Fri, 6 Jan 2023 18:53:42 -0800 Subject: add comments --- doc/fib.nxs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 doc/fib.nxs (limited to 'doc/fib.nxs') 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) -- cgit