summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2023-01-06 11:14:52 -0800
committerPreston Pan <preston@nullring.xyz>2023-01-06 11:14:52 -0800
commit30f12dfc1f32688f377913c52b131aa78d7830b5 (patch)
treeb59a2822cb6edb062b9965e6dc89b718d65b596b /doc
parente98f89c84ec0492a36e364ac32987e17296b33df (diff)
fixed stack bug; found recursion bug
Diffstat (limited to 'doc')
-rw-r--r--doc/main.nxs2
1 files changed, 2 insertions, 0 deletions
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))))))