3 ms·
I think the Prelude answer would be to use `flip`[1], along with composition (`.`) or application (`$`) as usual. flip :: (a -> b -> c) -> b -> a -> c [1
by truculent 6y ago
I think the Prelude answer would be to use `flip`[1], along with composition (`.`) or application (`$`) as usual.
flip :: (a -> b -> c) -> b -> a -> c
[1]: https://hackage.haskell.org/package/base-4.14.0.0/docs/Prelude.html#v:flip https://hackage.haskell.org/package/base-4.14.0.0/docs/Prelu...