Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: NestedLoops (Algorithm::Loops) and Iterators

by ikegami (Patriarch)
on Jul 26, 2005 at 23:35 UTC ( [id://478413]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $iter_prod = NestedLoops([
       sub { iter(qw(a b c) },
       sub { iter(qw(x y z) },
    ]);
    
  2. or download this
    my $iter = do { my $done = 0;  sub { $done++ ? undef : 1 } };
    iter_prod($iter, ...) if ...;
    iter_prod($iter, ...) if ...;
    
  3. or download this
    my @iters;
    push(@iters, ...) if ...;
    push(@iters, ...) if ...;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-04-19 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found