summaryrefslogtreecommitdiff
path: root/doc/main.nxs
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2023-01-07 12:13:02 -0800
committerPreston Pan <preston@nullring.xyz>2023-01-07 12:13:02 -0800
commitf57062553ab1451361b76128c4db29c5908f70b1 (patch)
tree0a13311d4de31c65fa9c003d52408e686258166e /doc/main.nxs
parent4581329cde6cfb64399be48f58d67310ab19ee1b (diff)
add includes and print statement
Diffstat (limited to 'doc/main.nxs')
-rw-r--r--doc/main.nxs3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/main.nxs b/doc/main.nxs
index 76fc95f..381161a 100644
--- a/doc/main.nxs
+++ b/doc/main.nxs
@@ -1,5 +1,6 @@
(include "fib.nxs")
+
(bind factorial (lambda (n)
- (if (= n 0) 1 (* n (factorial (- n 1))))))
+ (if (= n 0) 1 (* n (factorial (print(- n 1)))))))
(fib 7)
(+ (factorial 5) 10)