RosettaCodeData/Task/Factorial/Pure/factorial-1.pure
2023-07-01 13:44:08 -04:00

3 lines
89 B
Text

fact n = n*fact (n-1) if n>0;
= 1 otherwise;
let facts = map fact (1..10); facts;