|
|
|
|
|
by mananaysiempre
1777 days ago
|
|
So you’ve built in monadic bind for the Either monad into the language: Right x >>= f = Right (f x) -- normal case
Left y >>= f = Left y -- error propagation case
(The slogan is “monadic bind is an overload for the semicolon”.)I don’t expect this knowledge will dramatically change what you’re doing, but now that you know that’s how some people call it you have one more place to steal ideas from :) |
|