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. The library also includes tools for converting results, checking iterability, joining values, searching, counting, and working with rewindable generator variants. Overall, it is useful for PHP developers who want expressive iterable pipelines with minimal overhead and generator-based execution.

Features

  • Generator-based iteration primitives for PHP
  • Support for arrays, traversables, iterators, and aggregates
  • Lazy map, filter, reduce, zip, chain, and product operations
  • Slicing, taking, dropping, flattening, and chunking helpers
  • Conversion helpers for arrays, keyed arrays, joins, and counts
  • Rewindable variants for reusable generator workflows

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Iteration primitives using generators

Iteration primitives using generators Web Site

Other Useful Business Software
Build Agents and Models on One Platform Icon
Build Agents and Models on One Platform

Everything you need to build production-ready agents and models. Access 200+ Google and third-party AI models and tools.

Gemini Enterprise Agent Platform is Google Cloud's comprehensive platform for developers to build, scale, govern, and optimize agents and models. Choose from Google's most advanced models and third-party models like Anthropic's Claude Model Family.
Try It Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Iteration primitives using generators!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Libraries

Registered

3 days ago