Re:Inventing Monads
by smegma2 on Sunday August 30, 2020 @12:51PM
(#24324019)
`on` runs a binary function by first running a unary function on each argument.
Alternatively in Control.Arrow there's a 'fanout' operator &&&:
Of course it's still probably simpler to just write it out in this case.
[ Parent
| on HN ]
Also see this related discussion: https://www.reddit.com/r/programming/comments/ij0qzl/comment...