flup/test-inputs/factorial.flup

7 lines
107 B
Text
Raw Normal View History

factorial: int n -> int
| n 0 == -> 1
| 1 -> n 1 - factorial n * duplicate println
;
25 factorial