Warp wrote:
> I wonder what something along the lines of this would do:
>
> foo a =
> let res = if a<2 then 1 else a*foo(a-1)
> in res
Looks like YAFFI [Yet Another Factorial Function] to me. ;-)
[And yes, for anybody else reading it, it works just fine...]
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|