Do you know C#? LINQ? IEnumerable<T>? IEnumerable<T> is a monad. That’s how LINQ works.
You’ve been using monads all along.
Do you know C#? LINQ? IEnumerable<T>? IEnumerable<T> is a monad. That’s how LINQ works.
You’ve been using monads all along.
That’s a good one.
A rule of thumb is that if it has map and flatMap (or equivalent), then chances are that it’s a monad. In Java, Optional.or can be considered a flatMap equivalent.