Iterator-Flex
view release on metacpan or search on metacpan
lib/Iterator/Flex/Common.pm view on Meta::CPAN
package Iterator::Flex::Common;
# ABSTRACT: Iterator Generators and Adapters
use v5.28;
use strict;
use warnings;
use experimental qw( postderef signatures );
our $VERSION = '0.34';
use Exporter 'import';
our @EXPORT_OK = qw[
iterator iter iarray ibatch ibuffer icycle icache
icat ichain ichunk iflatten igather igrep imap
ipermute
iproduct iseq istack itake ifreeze izip
thaw
];
our %EXPORT_TAGS = ( all => \@EXPORT_OK );
use Ref::Util qw[ is_arrayref is_hashref is_ref is_globref ];
use Module::Runtime qw[ require_module ];
use Iterator::Flex::Utils qw[ throw_failure ];
use Iterator::Flex::Factory 'to_iterator', 'construct_from_iterable';
sub iterator : prototype(&@) ( $code, $pars = {} ) {
Iterator::Flex::Factory::construct_from_iterable( $code, $pars );
}
sub iter ( $iterable, $pars = {} ) {
to_iterator( $iterable, $pars );
}
( run in 0.651 second using v1.01-cache-2.11-cpan-0bb4e1dffa6 )