git @ Cat's Eye Technologies Lanthorn / master eg / factorial-letrec.lanthorn
master

Tree @master (Download .tar.gz)

factorial-letrec.lanthorn @masterraw · history · blame

1
2
3
4
letrec
    fact = fun(n) -> if eq(n, 1) then 1 else mul(n, fact(sub(n, 1)))
in
    fact(5)