-
-
06 Oct 2021 19:07:13 UTC
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (1)
- Testers (80 / 0 / 40)
- Kwalitee
Bus factor: 1- % Coverage
- License: gpl_3
- Perl: v5.28.0
- Activity
24 month- Tools
- Download (76.08KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
Changes for version 0.14 - 2021-10-06
- BUILD
- require Role::Tiny >= 2.002004, or role composition doesn't work correctly.
Documentation
Index of Iterator::Flex ManualsInterfacing with non- Iterator::Flex things.How to write an iteratorIterator BasicsCaveatsGlossaryHow Things WorkAn Abstract overview of IteratorsOther Iterator ModelsSerializing iteratorsHow to use an Iterator::Flex iteratorModules
Iterators with flexible behaviorsArray Iterator ClassArrayLike Iterator ClassIterator objectCache Iterator ClassIterator Generators and AdaptersArray Cycle Iterator ClassCreate on-the-fly Iterator::Flex classes/objectsFailure classes for Iterator::FlexFreeze an iterator after every nextGrep Iterator ClassMap Iterator ClassAn iterator which produces a Cartesian product of iteratorsIterator Methods to add Iterator::Flex Iterator modifiersImplement current as a closure stored in the registryImplement current as a methodsignal error by throwingImported iterator returns a sentinelImported iterator throwssignal exhaustion by transitioning to exhausted state and throwing exceptionsignal exhaustion by returning a sentinel value.signal exhaustion by setting exhausted flag;Role to add serialization capability to an Iterator::Flex::BaseRole for closure iterator which closes over selfConstruct a next() method for iterators without closed over $selfImplement prev as a closure stored in the registryImplement prev as a methodImplement reset as a closure stored in the registryImplement reset as a methodImplement rewind as a closure stored in the registryImplement rewind as a methodIterator State is kept in a closure variableIterator State is kept in the registryRole based utilitieswrap imported iterator which returns a sentinel on exhaustionConstruct a next() method for a coderef which expects to be passed an object refRole to add throw on exhaustion to an iterator which sets is_exhausted.Numeric Sequence Iterator ClassInternal utilitiesProvides
in lib/Iterator/Flex/Method.pmExamples
Module Install Instructions
To install Iterator::Flex, copy and paste the appropriate command in to your terminal.
cpanm Iterator::Flex
perl -MCPAN -e shell install Iterator::Flex
For more information on module installation, please visit the detailed CPAN module installation guide.