News for hackers. Stuff that matters.
Re:Functor, Applicative, and Monad by unhammer on Thursday September 19, 2019 @01:50PM (#21018689)
too late to edit, but that should look like

    (+1) <$> Just 1 → Just 2 

    (+1) <$> getIntFromThatUserThatOnlyTypes1 → IO 2

    (+1) <$> [1,2] → [2, 3]

    ((+1) <$> ask) 1 → 2
and

    take <$> Just 2 <*> Just "abc" → Just "ab"
as if the operator line noise wasn't bad enough already :)

There are no comments on this comment yet.