building blocks for functional php

Installs: 6

Dependents: 0

Stars: 1

Watchers: 2

Language: PHP

v0.0.1 2013-05-19 06:15 UTC

README

functional building blocks for php

synopsis

$f = \f\F::getInstance();

$f->map($f->comp($f->even,$f->inc), [1,2]);

available functions

  • add
  • apply
  • comp
  • complement
  • concat
  • dec
  • div
  • even
  • every
  • filter
  • first
  • get
  • inc
  • keys
  • last
  • map
  • mul
  • odd
  • partial
  • reduce
  • rem
  • some
  • sub
  • vals

tests

composer install --dev
vendor/bin/phpunit -c tests

benchmarks

php benchmark/run.php