Are there any inverted operators for application?

Operators

$
. or <<<
<$>
<*>
=<<
<=<

Walk very well together, everyone in a sense applies something on the left to something on the right. When we think differently, we have

&
>>>
>>=
>=>

But are there upside down versions of <$>and <*>?

+4
source share
1 answer
Lens

defines (<&>) = flip fmap. It will be available from Data.Functorthe database 4.11 / GHC 8.4 . Control.Applicativehas (<**>), which takes arguments in reverse, but not flip (<*>), because the effects are still sequenced from left to right.

+10
source

Source: https://habr.com/ru/post/1606170/


All Articles