Skip to content

hakre/Iterator-Garden

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages