Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Generating powerset with progressive ordering

by fizbin (Chaplain)
on Feb 25, 2005 at 17:27 UTC ( #434581=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub printsubsets1 {
      my ($prefix, @elemarray) = @_;
    ...
    sub printsubsets { printsubsets1("",@_);}
    
    printsubsets(qw(a b c d e));
    
  2. or download this
    sub printsubsets2 {
      my $stuff = join('',@_);
    ...
    
    printsubsets2(qw(a b c d e));
    
  3. or download this
    sub initialmask {
      my $nelem = shift;
    ...
    do {
      # blah blah blah $mask
    } while (nextmask($mask));
    
  4. or download this
    --
    @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/;
    map{y/X_/\n /;print}map{pop@$_}@/for@/
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-07-25 03:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls