Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a curry function #14

Closed
wants to merge 3 commits into from
Closed

Add a curry function #14

wants to merge 3 commits into from

Conversation

Nirei
Copy link

@Nirei Nirei commented Nov 26, 2020

Adds a curry function to the main module that accepts >=1-ary functions and curries them.

I've added a docstring and an spec. The spec seems kind of poor but I don't think Elixir typespecs have more expressive power than that.

Resolves #13.

Since 0 arity functions cannot be curried, it raises an ArgumentError when one is received.
@Nirei Nirei closed this Jul 13, 2022
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.

Add a curry function
1 participant