Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 247 Bytes

README.md

File metadata and controls

16 lines (14 loc) · 247 Bytes

php-functional

Examples

Map

How map looks like in Haskell:

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

And how it looks like in php with php-functional:

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