1
1
Fork 0
mirror of https://github.com/azur1s/bobbylisp.git synced 2024-10-16 02:37:40 -05:00
bobbylisp/example/factorial.hlm
2023-07-05 16:17:09 +07:00

7 lines
113 B
Plaintext

let factorial = fun (n Int) Int ->
if n > 1
then n * factorial(n - 1)
else 1
;
factorial(5);