The operators
$
. or <<<
<$>
<*>
=<<
<=<
Go very well together, each in some sense applying something on the left to something on the right. When thinking the other way, we have
&
>>>
>>=
>=>
But are there flipped versions of <$>
and <*>
?
lens defines (<&>) = flip fmap
. It will be available from Data.Functor
in base-4.11/GHC 8.4. Control.Applicative
has (<**>)
, which takes the arguments in the opposite order but is not flip (<*>)
because effects are still sequenced from left to right.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With