Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Golf: Selection from sets (Choose)

by knobunc (Pilgrim)
on May 24, 2001 at 21:56 UTC ( #83029=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub c{f($_[0],$_[0]-$_[1]+1) / f($_[1],1)}
    sub f{eval join'*',$_[1]..$_[0]}
    
  2. or download this
    sub c{f($_[0]-$_[1]+1..$_[0])/f(1..$_[1])}
    sub f{eval join'*',@_}
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2015-07-30 15:06 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 (271 votes), past polls