Jeff wrote:

>How are we going to get people to write recursive subroutines if we have
>a factorial operator? :) 
>
[snip]

sub offTopic
{

    Have you seen Arc's factorial?  The "short way" is really weird:

    (rec zero 1 * 1-)

    But then, the long way is still a bit odd to me, a non-LISPer:

    (rfn fact (x) (if (zero x) 1 (* x (fact (1- x)))))

}

-Rob

<small><font face="Courier New, Courier, monospace"><br> </font></small>


Reply via email to