Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Golf: Factorials

by mr.nick (Chaplain)
on May 23, 2001 at 06:17 UTC ( #82456=note: print w/ replies, xml ) Need Help??


in reply to Golf: Factorials

I don't know ... am I a beginner? :) I guess at golf, I am.
sub f{map{eval join"*",1..$_}@_;}
33 chars. Duh! Identical as someone else's answer ...


Comment on Re: Golf: Factorials
Download Code
Re: Re: Golf: Factorials
by bobione (Pilgrim) on May 23, 2001 at 13:40 UTC
    32 characters if you delete that last ';'...
    sub f{map{eval join"*",1..$_}@_}

    Update: Sorry it's the same as japhy... nothing new.

    BobiOne KenoBi ;)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://82456]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2015-07-04 13:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls