RosettaCodeData/Task/Factorial/Retro/factorial.retro
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

2 lines
97 B
Text

: <factorial> dup 1 = if; dup 1- <factorial> * ;
: factorial dup 0 = [ 1+ ] [ <factorial> ] if ;