Iterator::Flex::Base - Iterator object
version 0.12
$class->_is_iterator( $obj );
Returns true if an object is an iterator, where iterator is defined as
An object which inherits from Iterator::Flex::Base.
$sub = $iter->__iter__;
Returns the subroutine which returns the next value from the iterator.
$bool = $iter->may( $method );
Similar to can, except it checks to ensure that the method can be called on the iterators which $iter depends on. For example, it's possible that $iter implements a rewind method, but that it's dependencies do not. In that case can|UNIVESAL/can will return true, but may will return false.
$iter
rewind
can|UNIVESAL/can
may
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.