diff --git a/examples/recursive.lisp b/examples/recursive.lisp new file mode 100644 index 0000000..08bd296 --- /dev/null +++ b/examples/recursive.lisp @@ -0,0 +1,15 @@ +( + (clear) + (def rec + (lambda (v) + (if (gt v 0) + ( + (stroke (circle + (mul 5 v) + (mul 5 v) + (mul 5 v)) 1 "red") + (rec (sub v 5)) + ) + (echo "done")))) + (rec 100) +) \ No newline at end of file