Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

(Golf) Ordered Combinations

by MeowChow (Vicar)
on Apr 25, 2001 at 00:45 UTC ( #75261=obfuscated: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub c{my$n=-1+shift;$n?map{my$c=$_;map$c.$_,c($n,@_)}@_:@_}
    
  2. or download this
    print join " ", c qw(2 a b c d);
    print "\n";
    ...
    # outputs
    aa ab ac ad ba bb bc bd ca cb cc cd da db dc dd
    0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 
    +1110 1111
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (19)
As of 2015-07-29 14:56 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 (263 votes), past polls