Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: Powerset short-circuit optimization

by Limbic~Region (Chancellor)
on Oct 26, 2006 at 13:28 UTC ( #580758=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
        print "$set\n";
        powerset($_) for subsets($set);
    }
    
  2. or download this
    sub subsets {
        my $set = shift @_;
    ...
        }
        return @ret;
    }
    
  3. or download this
    sub subsets {
        my $set = shift @_;
    ...
        }
        return @ret;
    }
    
  4. or download this
    # All references to $calls removed
    
    ...
    # The above 2 lines became
    print join '', map {defined $_ && $display->{$_} ? $_ : ''} @$padded_l
    +imbic_set;
    print "\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2014-04-23 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (554 votes), past polls