Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2014-07-29 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (213 votes), past polls