From 30f12dfc1f32688f377913c52b131aa78d7830b5 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Fri, 6 Jan 2023 11:14:52 -0800 Subject: fixed stack bug; found recursion bug --- doc/main.nxs | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 doc/main.nxs (limited to 'doc/main.nxs') diff --git a/doc/main.nxs b/doc/main.nxs new file mode 100644 index 0000000..e09c304 --- /dev/null +++ b/doc/main.nxs @@ -0,0 +1,2 @@ +(bind factorial (lambda (n) + (if (= n 0) 1 (* n (factorial (- n 1)))))) -- cgit