Skip to content

Allow arity exceptions on defpartial #1

@expede

Description

@expede

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions