RosettaCodeData/Task/Compile-time-calculation/Oforth/compile-time-calculation-2.fth

5 lines
127 B
Forth
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
20 seq map(#[ seq reduce(#*) ]) Constant new: ALLFACTS
: fact(n) n ifZero: [ 1 ] else: [ ALLFACTS at(n) ] ;
ALLFACTS println