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

Allow arity exceptions on defpartial #1

Open
expede opened this issue Jan 2, 2016 · 0 comments
Open

Allow arity exceptions on defpartial #1

expede opened this issue Jan 2, 2016 · 0 comments
Assignees

Comments

@expede
Copy link
Member

expede commented Jan 2, 2016

Should be able to do things like this...

defpartial minus(a, b, c), except: 2, do: a - b - c
defpartial together(a, b, c, d), except: [2,3], do: a <> b <> c <> d

defpartial plus(a, b, c), only: 2, do: a + b + c
defpartial times(a, b, c), only: [1,2], do: a * b * c

...and have it generate or exclude the arities specified.

Once that this the case, we can consider merging Quark.Partial into Quark.Curry, as we won't have the "all arities" problem.

@expede expede self-assigned this Jan 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant