3 ms·
That's because they're both >>= in Haskell. So is SelectMany in C#. Or to put it another way, it's taking an operation that does this: a -> t of b And turns
by moomin 10y ago
That's because they're both >>= in Haskell. So is SelectMany in C#.
Or to put it another way, it's taking an operation that does this:
a -> t of b
And turns it into one that does this:
t of a -> t of b
There's a formal name for "t"s that support this operation. I'll let you guess what it is. :)
- tatterdemalion 10y agoThis is inaccurate. While Result is a monad, `?` in Rust is not the monadic bind. That's the `and_then` method.
- deleted 10y ago[deleted]