RosettaCodeData/Task/Factorial/Retro/factorial.retro
2023-07-01 13:44:08 -04:00

2 lines
97 B
Text

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