add recursive example
This commit is contained in:
parent
b3fa6d26d5
commit
6abb963a40
15
examples/recursive.lisp
Normal file
15
examples/recursive.lisp
Normal file
@ -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)
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user