diff options
author | Preston Pan <preston@nullring.xyz> | 2023-01-07 12:13:02 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2023-01-07 12:13:02 -0800 |
commit | f57062553ab1451361b76128c4db29c5908f70b1 (patch) | |
tree | 0a13311d4de31c65fa9c003d52408e686258166e /doc/countdown.nxs | |
parent | 4581329cde6cfb64399be48f58d67310ab19ee1b (diff) |
add includes and print statement
Diffstat (limited to 'doc/countdown.nxs')
-rw-r--r-- | doc/countdown.nxs | 7 |
1 files changed, 7 insertions, 0 deletions
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) |