Closed jasny closed 1 year ago
The curry_fixed and curry_right_fixed methods are never implemented.
curry_fixed
curry_right_fixed
Rather than adding more functions, passing an integer as first arg specifies the number arguments.
$divider = function ($a, $b, $c = 1) { return $a / ($b * $c); }; $divide10ByProduct = C\curry(2, $divider, 10); $divideByTripple = C\curry(2, $divider, 3); $divideBy200 = C\curry_right(1, $divider, 10, 20);
This PR includes #9
The
curry_fixed
andcurry_right_fixed
methods are never implemented.Rather than adding more functions, passing an integer as first arg specifies the number arguments.
This PR includes #9