mirror of
https://github.com/azur1s/bobbylisp.git
synced 2024-10-16 02:37:40 -05:00
7 lines
113 B
Plaintext
7 lines
113 B
Plaintext
let factorial = fun (n Int) Int ->
|
|
if n > 1
|
|
then n * factorial(n - 1)
|
|
else 1
|
|
;
|
|
|
|
factorial(5); |