Registry / utility / elephox-collection

elephox-collection

JSON →
library0.7.0phppackagistunverified

Elephox collection library.

composer require elephox/collection
INSTALL
IMPORT
SIG · ELEPHOX-COLLECTION
E
elephox-collection
utilityphpv0.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Collection
use Elephox\Collection\Collection;

Create a collection and reduce it to a sum.

use Elephox\Collection\Collection; $collection = new Collection([1, 2, 3]); echo $collection->reduce(fn($carry, $item) => $carry + $item, 0);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.7.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
elephox-collection — pip install elephox-collection · libregistry