06 Oct 2021 19:07:13 UTC
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (80 / 0 / 40)
- KwaliteeBus factor: 1
- % Coverage
- License: gpl_3
- Perl: v5.28.0
- Activity24 month
- Download (76.08KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionDJERIUS Diab Jerius
Changes for version 0.14 - 2021-10-06
- require Role::Tiny >= 2.002004, or role composition doesn't work correctly.
DocumentationIndex 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 iterator
ModulesIterators 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 utilities
Module Install Instructions
To install Iterator::Flex, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Iterator::Flex
For more information on module installation, please visit the detailed CPAN module installation guide.