library php-functional
Functional primitives for PHP
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
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);
dev-master
9999999-dev
Functional primitives for PHP
Sources
Download
LGPLv3
LGPL-3.0-or-later
The Requires
The Development Requires
functional