Iterator::Flex::Product - An iterator which produces a Cartesian product of iterators
version 0.18
$iterator = Iterator::Flex::Product->new( $iterable1, $iterable2, ..., ?\%pars ); $iterator = Iterator::Flex::Product->new( key1 => $iterable1, key2 => iterable2, ..., ?\%pars );
Returns an iterator which produces a Cartesian product of the input iterables. If the input to iproduct is a list of iterables, $iterator will return an array reference containing an element from each iterable.
$iterator
If the input is a list of key, iterable pairs, $iterator will return a hash reference.
The iterables are converted into iterators via "to_iterator" in Iterator::Flex::Factory if required.
All of the iterables must support the rewind method.
rewind
The optional %pars hash may contain standard signal parameters.
%pars
The iterator supports the following capabilities:
This iterator may be frozen only if all of the iterables support the prev or __prev__ method.
prev
__prev__
Please report any bugs or feature requests to bug-iterator-flex@rt.cpan.org or through the web interface at: https://rt.cpan.org/Public/Dist/Display.html?Name=Iterator-Flex
Source is available at
https://gitlab.com/djerius/iterator-flex
and may be cloned from
https://gitlab.com/djerius/iterator-flex.git
Please see those modules/websites for more information related to this module.
Iterator::Flex
Diab Jerius <djerius@cpan.org>
This software is Copyright (c) 2018 by Smithsonian Astrophysical Observatory.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install Iterator::Flex, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Iterator::Flex
CPAN shell
perl -MCPAN -e shell install Iterator::Flex
For more information on module installation, please visit the detailed CPAN module installation guide.