From f57062553ab1451361b76128c4db29c5908f70b1 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sat, 7 Jan 2023 12:13:02 -0800 Subject: add includes and print statement --- doc/main.nxs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/main.nxs') 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) -- cgit