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

8 lines
108 B
Plaintext
Raw Normal View History

func fact (n : num) num =
if n == 0 then
1
else
n * fact(n - 1)
;
println(fact(5));