RosettaCodeData/Task/Factorial/Factor/factorial.factor

4 lines
71 B
Factor

USING: math.ranges sequences ;
: factorial ( n -- n ) [1,b] product ;