PHPackages                             patchranger/cartesian-iterator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. patchranger/cartesian-iterator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

patchranger/cartesian-iterator
==============================

Cartesian iterator

0.07(7y ago)211.6k↓32.7%1[1 issues](https://github.com/PatchRanger/cartesian-iterator/issues)1GPL-3.0-or-laterPHPPHP &gt;=7.0

Since Nov 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/PatchRanger/cartesian-iterator)[ Packagist](https://packagist.org/packages/patchranger/cartesian-iterator)[ RSS](/packages/patchranger-cartesian-iterator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)DependenciesVersions (11)Used By (1)

cartesian-iterator
==================

[](#cartesian-iterator)

Iterator, returning the cartesian product of associative array of iterators. See [https://en.wikipedia.org/wiki/Cartesian\_product](https://en.wikipedia.org/wiki/Cartesian_product) .

Alternative implementations
---------------------------

[](#alternative-implementations)

-  : A little bit more messy.
-  : Not so laconic - but covered by tests.
-  : Pretty simple though no iterator, plain array-stuff.

Benchmark
---------

[](#benchmark)

Quickstart
----------

[](#quickstart)

```
