krak / functional
A collection of missing php functional functions
v0.1.0
2015-08-05 02:36 UTC
Requires
- php: >=5.2
Requires (Dev)
- php: >=5.5
- phpunit/phpunit: ^4.0
This package is not auto-updated.
Last update: 2024-10-30 10:49:30 UTC
README
The function library is just a simple collection of general functional functions.
API
function identity($val) -> mixed
function map($collection, callable $predicate) -> array
function reduce($collection, callable $predicate, $accumulator = null) -> mixed