Skip to content
This repository was archived by the owner on May 29, 2023. It is now read-only.

Add curry_right() function #7

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Add curry_right() function #7

wants to merge 12 commits into from

Conversation

shadowhand
Copy link
Contributor

@shadowhand shadowhand commented Jun 3, 2017

Possibly replaces the need for #6. I think bind is probably easier for some developers to understand, though it is much less pure.

Refs #4, actual changes are in 4294ed4

shadowhand added 12 commits June 1, 2017 09:13
Having an immutable `Curry` class allows creating a curry from any
callable. Having this as a base class will allow additional
functionality such as `Partial` to be added with minimal effort.
Having all combinators curried by default provides much greater
flexibility for point-free programming.
});

// The following statements are all equivalent:
assert(6 === $add(1, 2, 3));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some typos here: $sum / $add, c without the dollar ($) symbol.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants