krak/functional

A collection of missing php functional functions

v0.1.0 2015-08-05 02:36 UTC

This package is not auto-updated.

Last update: 2024-11-13 11:00:33 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