you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 1 year ago

Whenever I try and get a proper explanation of a monad from the internet I get these miserable opaque examples which make me go "sorry I asked!" But I think a monad is basically just single type that when unwrapped gives you the result of a calculation and some metadata about the calculation.

I think it's more like Rust's Result or Option types then go's tuples but I'd say they both basically count.

  • source
  • parent