1
1
Fork 0
mirror of https://github.com/azur1s/bobbylisp.git synced 2024-10-16 02:37:40 -05:00
bobbylisp/example/s.vl

8 lines
133 B
Plaintext
Raw Normal View History

2022-01-21 17:43:50 -06:00
(fun factorial [x]
(if (<= x 1)
1
(* x (factorial (- x 1)))))
(def amount 7)
(do
(print (factorial amount)))