From 87d82ead963c24d84a4f6e417b96b9bf73d132bb Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sun, 8 Jan 2023 14:44:25 -0800 Subject: fix memory problem --- doc/main.nxs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'doc/main.nxs') diff --git a/doc/main.nxs b/doc/main.nxs index d3aa986..cb6985d 100644 --- a/doc/main.nxs +++ b/doc/main.nxs @@ -1,8 +1,9 @@ (include "fib.nxs") (bind factorial (lambda (n) - (if (= n 0) 1 (* n (factorial (print(- n 1))))))) -(print(fib 7)) + (if (= n 0) 1 (* n (factorial (- n 1)))))) + +(print (fib 7)) (print (+ (factorial 5) 10)) -(print(car (quote (+ (3 2) 4)))) +(print (quote (+ (3 2) 4))) -- cgit