aerophant/ramda

Functional Programming Library in PHP

0.0.3 2018-07-01 14:24 UTC

This package is not auto-updated.

Last update: 2024-11-10 09:28:51 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

  • version 0.0.x : Under development, not all usseful functions supported
  • version 0.1: #1

Want to help me ?

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