2 ms·
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, y
by masklinn 9y ago
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
}