We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Implement:
curry :: ((a, b) -> c) -> a -> b -> c uncurry :: (a -> b -> c) -> (a, b) -> c
As methods of the Arrow class.
Arrow
Then, given arity of function f, return partial application (slice) of f with smaller number of arguments.
To do this properly, we should have product types, so that:
Arrow(A * B, C) ~ Arrow(A, Arrow(B, C))
And arity 2 is infered from the input type A * B.
A * B
The text was updated successfully, but these errors were encountered:
More generally implement the whole cartesian structure on types:
A | B # union type A * B # product type B ** A # exponentiation: Arrow(A, B)
Sorry, something went wrong.
Cartesian structure merged in #10
No branches or pull requests
Implement:
As methods of the
Arrow
class.Then, given arity of function f, return partial application (slice) of f with smaller number of arguments.
To do this properly, we should have product types, so that:
And arity 2 is infered from the input type
A * B
.The text was updated successfully, but these errors were encountered: