gt22 icon

Untitled

gt22 | PRO | 11/06/20 11:16:43 AM UTC | 0 ⭐ | 874 👁️ | Never ⏰ | []
text |

200 B

|

None

|

0 👍

/

0 👎

instance Functor (E l) where
     _ `fmap` (L x) = L x
    f `fmap` (R x) = R (f x)
 instance Applicative (E l) where
     pure = R
     (L f) <*> _ = L f
    (R f) <*> x = f `fmap` x

Comments