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/countdown.nxs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 doc/countdown.nxs (limited to 'doc/countdown.nxs') diff --git a/doc/countdown.nxs b/doc/countdown.nxs new file mode 100644 index 0000000..c28fc7f --- /dev/null +++ b/doc/countdown.nxs @@ -0,0 +1,7 @@ +(bind countdown + (lambda (n) + (if (= n 0) + 0 + ((lambda (continue) + (continue (- n 1))) countdown)))) +(countdown 10) -- cgit