Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Creating tuples based on sets (nested loops)

by tye (Sage)
on Apr 16, 2003 at 17:35 UTC ( #250979=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub tuples {
        my( $count, @set )= @_;
    ...
    for my $tuple (  @$tuples  ) {
        print "@$tuple\n";
    }
    
  2. or download this
    sub tupleMaker {
        my( $count, @set )= @_;
    ...
    while(  my @tuple= $gen->()  ) {
        print "@tuple\n";
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2021-04-19 14:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?