3 ms·
Well one of the things that makes it neat is that it works for any Monad. Where Monad means any implementation of the following method F<Y> SelectMany(F<X>
by contravariant 4y ago
Well one of the things that makes it neat is that it works for any Monad. Where Monad means any implementation of the following method
F<Y> SelectMany(F<X> input, Func<X, F<Y>> map)
this could be a function where you have a list of things, apply a function to each element that returns a list and the result is the concatenation of the individual lists. Or you could use it for stuff like tasks where the result is a task that returns something like `await map(await input)`.