3 ms·
Naive question, how do I figure out in which part of the chain a null had occured? Or is the assumption that you'd establish only valid inputs and therefore nev
by vikiomega9 9y ago
Naive question, how do I figure out in which part of the chain a null had occured? Or is the assumption that you'd establish only valid inputs and therefore never have a chance for this to happen?
- kccqzy 9y agoThe Maybe monad doesn’t have this feature. It’s purposefully simple: the value is either present or absent. If you want different errors, use the Either monad. It basically means either the value you want is there, or it’s not there but there’s an explanation. Chaining works just as well for the Either monad.