bobbylisp/test2.hlm

5 lines
87 B
Plaintext

let factorial = fn x =
if x == 1
then x
else x * factorial(x - 1);