2017 © Pedro Peláez
 

library php-functional

Functional primitives for PHP

image

metaxy/php-functional

Functional primitives for PHP

  • Wednesday, January 31, 2018
  • by metaxy
  • Repository
  • 1 Watchers
  • 1 Stars
  • 514 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 5 % Grown

The README.md

php-functional

Examples

Map

How map looks like in Haskell:, (*1)

mult2 = map((*) 2)
f = mult2 5

And how it looks like in php with php-functional:, (*2)

$mult2 = map(function($x){return $x*2});
$f = $mult2(5);

The Versions

31/01 2018

dev-master

9999999-dev

Functional primitives for PHP

  Sources   Download

LGPLv3 LGPL-3.0-or-later

The Requires

  • php >=5.3.0

 

The Development Requires

functional