dfe*_*uer 5 haskell applicative
运营商
$
. or <<<
<$>
<*>
=<<
<=<
Run Code Online (Sandbox Code Playgroud)
一起走得很好,每个人在某种意义上将左边的东西应用到右边的东西上.在考虑另一种方式时,我们有
&
>>>
>>=
>=>
Run Code Online (Sandbox Code Playgroud)
但有翻转的版本<$>和<*>?
dup*_*ode 11
镜头定义(<&>) = flip fmap.它将Data.Functor在-4.11/GHC 8.4 基础上提供.Control.Applicativehas (<**>),它以相反的顺序获取参数但不是 flip (<*>)因为效果仍然从左到右排序.