3 ms·
Other languages have monads too. They just don't call them that, and give each individual monad's bind operation its own name instead of having a single interfa
by josephcsible 4y ago
Other languages have monads too. They just don't call them that, and give each individual monad's bind operation its own name instead of having a single interface they all share. For example, std::optional in C++ is a monad, with and_then being the monadic bind operation, arrays in JavaScript are monads, with flatMap being the monadic bind operation, and async functions are monads, with await being the monadic bind operation.