3 ms·
Chaining is as old as hills and can be used to avoid callback hells. What monads are really is a type respecting chainable object with 3 methods: value, map and
by hcho 8y ago
Chaining is as old as hills and can be used to avoid callback hells. What monads are really is a type respecting chainable object with 3 methods: value, map and then.
- pimeys 8y agoIf I remember correctly map comes from functor, and every monad is also a functor.