Functional Programming Library in PHP
Under Development :(
aerophant/ramdaprovide auto curry for you and give you better way to do function composition like
pipe( always([1, 2, 3, 4, 5]), map(add(1)), // filter even numbers only filter(pipe( partialRight(modulo(), ), equals(0) )) )(); // => [2, 4, 6]
Easy to pass almost of
aerophant/ramdafunctions as callable, just call it without any argument.
$alwaysReturn1 = call_user_func_array(always(), );
- version 0.0.x : Under development, not all usseful functions supported
- version 0.1: https://github.com/aerophant/ramda/issues/1
- You can suggest function by creating issues and/or PR
- help improve performance by creating PR.