Re:Kotlin: The Problem with null
by modalduality on Friday January 12, 2018 @09:21PM
(#16137901)
Most languages with monads have tools for working with them. In Haskell, for example, even without `liftM2` or `sequenceM`, you can simply do
[ Parent
| on HN ]
That's got nothing to do with monads though, you can do that in Swift or Rust which have a monadic option type but don't actually have monads:
match (xm, ym) {
(Some(x), Some(y)) => x + y,
_ => 0
}