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

7 lines
113 B
Plaintext
Raw Permalink Normal View History

2023-07-05 04:17:09 -05:00
let factorial = fun (n Int) Int ->
if n > 1
then n * factorial(n - 1)
else 1
;
factorial(5);