Iterator::Flex::ArrayLike - ArrayLike Iterator Class
version 0.18
$iterator = Iterator::Flex::ArrayLike->new( $obj, ?\%pars );
Wrap an array-like object in an iterator. An array like object must provide two methods, one which returns the number of elements, and another which returns the element at a given index.
The optional %pars hash may contain standard signal parameters as well as the following model parameters:
%pars
The supplied argument will be used to determine the number of elements, via
$nelem = $obj->$length;
If not specified, a method with name length or __length__ or len or __len__ will be used if the object provides it.
length
__length__
len
__len__
The supplied argument will be used to obtain the element at a specified index.
$element = $obj->$at( $index );
If not specified, a method with name at or __at__, or getitem or __getitem__ will be used if the object provides it.
at
__at__
getitem
__getitem__
The returned iterator supports the following capabilities:
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.