building blocks for functional php

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/zweifisch/f

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

This package is not auto-updated.

Last update: 2025-10-20 18:55:23 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