Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Generating powerset with progressive ordering

by Roy Johnson (Monsignor)
on Apr 26, 2005 at 20:20 UTC ( #451756=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Powerset: the set of all subsets -- (for illustration only, not used
    + below)
    sub powerset {
    ...
    
    my $iter = iter_powerset(2,3,5,7,11);
    print "@$_\n" while (@{$_ = $iter->()});
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://451756]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2017-02-21 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (305 votes). Check out past polls.