Comment

Comment by modalduality

Most languages with monads have tools for working with them. In Haskell, for example, even without `liftM2` or `sequenceM`, you can simply do

    case (xm, ym) of
        (Just x, Just y) -> x + y
        _ -> 0

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton