Re: Factorial on RosettaCode
- Posted by AndyDrummond Jan 31, 2011
- 1970 views
Am I being particularly obtuse? I'd have thought the function would be simply:
function factorial(integer n) atom f f=1 while n do f*=n n-=1 end while return f end function
Putting in it's fewest lines, that is? Or is there a particularly nice Euphorian way to do that?