krak/functional

A collection of missing php functional functions

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

pkg:composer/krak/functional

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

This package is not auto-updated.

Last update: 2025-10-01 15:16:26 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