5

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 <*>?

dfeuer
  • 48,079
  • 5
  • 63
  • 167

1 Answers1

11

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.

duplode
  • 33,731
  • 7
  • 79
  • 150