Iteration primitives using generators is a PHP library that provides iteration primitives implemented with generators. It offers familiar functional operations such as map, filter, reduce, zip, chain, slice, take, drop, flatten, and chunk for arbitrary iterable values. Unlike many array-only helpers, it accepts arrays, traversables, iterators, and aggregates. Because the operations are lazy, it can process sequences without eagerly building full intermediate arrays.