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
Stop Cyber Threats with VM-Series Next-Gen Firewall on Azure Icon
Stop Cyber Threats with VM-Series Next-Gen Firewall on Azure

Native application identity and user-based security for your Azure cloud

Gain integrated visibility across all traffic in a single pass. Deploy Palo Alto Networks VM-Series to determine application identity and content while automating security policy updates via rich APIs.
Get a free trial
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

2 days ago