Help for this page

Select Code to Download


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