Chuong
09/14/2024, 6:41 AMEither<NonEmptyList<A>, B>
that I got from a function that validates my inputs. I want to transform B
into C
. Doing so requires more validations, so I'll get a type of Either<NonEmptyList<A>, C>
. The A
s are typed errors that inherit from the same base class. I want to accumulate the errors. I believe that flatMap
overwrites the first NonEmptyList<A>
with the second one. Is bind
and zipOrAccumulate
the way to go?Alejandro Serrano.Mena
09/14/2024, 8:27 AMphldavies
09/14/2024, 8:29 AM