RosettaCodeData/Task/Compile-time-calculation/Oforth/compile-time-calculation-2.oforth
2016-12-05 23:44:36 +01:00

4 lines
127 B
Text

20 seq map(#[ seq reduce(#*) ]) Constant new: ALLFACTS
: fact(n) n ifZero: [ 1 ] else: [ ALLFACTS at(n) ] ;
ALLFACTS println