- or download this
{
package Iterator::Product;
...
$self->[0]->is_exhausted && $self->[1]->is_exhausted
}
}
- or download this
use List::Util qw( reduce );
my $nested_iterator = reduce { new Iterator::Product $a, $b } @sub_ite
+rators;
- or download this
{
package Iterator::Array;
...
$self->{'i'} > $#{ $self->{'ar'} }
}
}
- or download this
my $it = new Iterator::Product
Iterator::Array->new( ['1 ',' 2 ',] ),
...
print "@x\n";
}
- or download this
1 4 7
1 4 8
...
2 5 7
2 5 8