aerophant/ramda

Functional Programming Library in PHP

0.0.3 2018-07-01 14:24 UTC

This package is not auto-updated.

Last update: 2020-10-17 14:04:36 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version License

Under Development :(

Adventage of Aerophant Ramda

  • aerophant/ramda provide auto curry for you and give you better way to do function composition like ramdajs

    pipe(
       always([1, 2, 3, 4, 5]),
       map(add(1)),
       // filter even numbers only
       filter(pipe(
         partialRight(modulo(), [2]),
         equals(0)
       ))
    )();
    // => [2, 4, 6]
    
  • Easy to pass almost of aerophant/ramda functions as callable, just call it without any argument.

     $alwaysReturn1 = call_user_func_array(always(), [1]);
    

RoadMap

Want to help me ?

  • You can suggest function by creating issues and/or PR
  • help improve performance by creating PR.