Open paluh opened 2 years ago
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:
>*<
divided
Divide
Apply
nonNegative = Predicate (_ >= 0) q = (_.x &&& _.y &&& _.z) >$< nonNegative >*< nonNegative >*< nonNegative
Should I provide a PR with such addition to the library?
I’m on board, thanks for the idea!
Yeah, go for it!
In haskell contravariant we can find a new operator
>*<
which is an alias fordivided
. It allows us to nicely capture duality ofDivide
andApply
- we can write:Should I provide a PR with such addition to the library?