3 ms·
What's wrong with 'bind' ?
by gclaramunt 11y ago
What's wrong with 'bind' ?
- skybrian 11y agoWhat's being bound? Perhaps "then" would work. JavaScript promises use it to good effect, and they're a monad.
- VladimirGolovin 11y agoSmaller computations are being bound into a larger computation, where the monad provides the the code that is executed 'between the lines'. (BTW, my own take on renaming a monad into something less scary is daisychain, or, slightly more to-the-point, chainable.)
- tel 11y ago(>>=) :: M a -> (a -> M b) -> M b The `a` is bound in the second argument.