I often find myself writing code in an `EitherNel`...
# arrow
u
I often find myself writing code in an
EitherNel
context –e.g., resulting from
zipOrAccumulate
. But then I need to
bind
over a function that returns a simple
Either
. This effectively forces me to write lots of boilerplate
.toEitherNel().bind()
. Is there a combined helper function avaiilable? Or am I using
EitherNel
in a non-idiomatic way?
a
bindOrAccumulate
should work there in many cases
u
unfortunately it doesn't. Not inside the last lambda of
zipOrAccumulate
, which is the most prevalent case for me.