joelharkes / data-structures
Data structures for PHP
1.0.0
2022-08-28 14:07 UTC
Requires (Dev)
- phpstan/phpstan: ^1.8
- phpunit/phpunit: ^9
README
Data structures for PHP written in PHP.
- Stack
- StackedList
- Set (HashSet)
- Map (HashMap, Dictionary)
Iterator chaining
All iterators have been extended to chaining and delayed execution.
$set = new \DataStructures\Set\Set(); $set->getIterator() ->filter(fn($value) => $value === 1) ->map(fn($value) => $value === 1) ->count(); // or all(), any().