diff options
author | Preston Pan <preston@nullring.xyz> | 2023-01-06 11:14:52 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2023-01-06 11:14:52 -0800 |
commit | 30f12dfc1f32688f377913c52b131aa78d7830b5 (patch) | |
tree | b59a2822cb6edb062b9965e6dc89b718d65b596b /doc/main.nxs | |
parent | e98f89c84ec0492a36e364ac32987e17296b33df (diff) |
fixed stack bug; found recursion bug
Diffstat (limited to 'doc/main.nxs')
-rw-r--r-- | doc/main.nxs | 2 |
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)))))) |