Iterator::Flex::Manual::Alien - Interfacing with non- Iterator::Flex things.
version 0.12
Iterator::Flex provides transparent access to iterators available on CPAN (see Iterator::Flex::Manual::PriorArt), as well as things which are iterable, such as arrays (or objects which act like arrays), or globrefs (or objects which act like them), or objects which provide iterator methods.
For these, "iter" in Iterator::Flex::Common is the family-friendly front end; under the hood "construct_from_iterable" in Iterator::Flex::Factory does the heavy lifting.
There's also Iterator::Flex::ArrayLike, which interfaces to objects which can provide a length and an element accessor.
Interfacing is accomplished by creating a proxy iterator which translates
Invocation
Exhaustion signalling
and forwards other capability invocations to the source iterator.
Some iterators are objects which are invoked via a method call, others are code references which can be called directly. Iterator::Flex always works with code references, so in the former case, a closure must be created.
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
Iterator::Flex::Manual
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.