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 >*< alias for divided #32

Open
paluh opened this issue Jan 9, 2022 · 2 comments
Open

Add >*< alias for divided #32

paluh opened this issue Jan 9, 2022 · 2 comments
Labels
status: accepted This issue is now ready to be implemented via a PR. type: enhancement A new feature or addition.

Comments

@paluh
Copy link
Contributor

paluh commented Jan 9, 2022

In haskell contravariant we can find a new operator >*< which is an alias for divided. It allows us to nicely capture duality of Divide and Apply - we can write:

nonNegative = Predicate (_ >= 0)

q = (_.x &&& _.y &&& _.z) >$< nonNegative >*< nonNegative >*< nonNegative

Should I provide a PR with such addition to the library?

@thomashoneyman thomashoneyman added status: accepted This issue is now ready to be implemented via a PR. type: enhancement A new feature or addition. labels Jan 9, 2022
@thomashoneyman
Copy link
Member

I’m on board, thanks for the idea!

@JordanMartinez
Copy link
Contributor

Yeah, go for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepted This issue is now ready to be implemented via a PR. type: enhancement A new feature or addition.
Projects
None yet
Development

No branches or pull requests

3 participants