Skip to content

Latest commit

 

History

History
63 lines (53 loc) · 4.56 KB

README.md

File metadata and controls

63 lines (53 loc) · 4.56 KB

Iterator-Garden

Examples of Iterators. Let Iterators grow like flowers in the garden.

Example Iterator Classes

Short table of exemplary iterator classes not part of PHP SPL:

Class Description Author
DecoratingIterator Decorate with Callable or classname Marcus Börger
DecoratingKeyValueIterator Decorate key and value Marcus Börger
DualIterator Synchronous iteration over two iterators Marcus Börger
FetchIterator Fetch iteration values until false hakre
FilterChainIterator FilterIterator for many callbacks salathe
KeyIterator Iterate over keys Marcus Börger
KeyValueIterator Iterate over Keys and Values in parallel Marcus Börger
PadIterator Pad an iteration up to a number of values hakre
RandomIterator Reservoir Sampling iteration hakre
RecursiveDOMIterator Iterate over the entire DOM tree Gordon Oheim
SortableIterator Sortable Iterator (Files) Fabien Potencier
SortingIterator Sorting Iterators salathe
TableIterator Turn any Iterator into rows and columns hakre

Resources

Slides