Skip to content

Conversation

@jasny
Copy link

@jasny jasny commented Sep 29, 2018

The curry_fixed and curry_right_fixed methods are never implemented.

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

@jasny jasny closed this by deleting the head repository May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant