git @ Cat's Eye Technologies Lanthorn / be75afc
Add letrec version of factorial example program. Chris Pressey 4 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 letrec
1 fact = fun(n) -> if eq(n, 1) then 1 else mul(n, fact(sub(n, 1)))
2 in
3 fact(5)