4 ms·
I think (?) Scala has proper monads (but they're a little weird) which would let you avoid the verbose extra code. Generally it just involves implementing map
by PeCaN 11y ago
I think (?) Scala has proper monads (but they're a little weird) which would let you avoid the verbose extra code.
Generally it just involves implementing map and flatMap on your Either type, or something like that.
Disclaimer: not a Scala developer.