[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

RE: [FWP] Factorial Elegance




> 
> Why spend time multiplying something with 1? 
> 
>     while ($l > 2) {$x *= --$l}
> 
> ought to be slightly faster.
> 

right on.  just got caught up in the technical def. of factorial :)

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe