krak / functional
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-09-18 10:17:58 UTC
README
函数库只是一个简单的通用功能函数集合。
API
function identity($val) -> mixed
function map($collection, callable $predicate) -> array
function reduce($collection, callable $predicate, $accumulator = null) -> mixed