quick observation, in above function (attached image),
it will always return Valid<B> and NEVER Invalid<Nel<A>>, even if all are either.lefts, it will just return Valid<EmptyList<B>> losing all the errors, r8?
is there a prebuilt function to compute over List<Either<A,B>> to return Valid<List<B>>
if ANY f(a) returns a value, else Invalid<Nel<A>>?
I think I will need to manually traverse and collect errors until I reach an Either.Right, and if before end I do reach an Either.Right then only care about those and return Valid<List<B>> else if not then return all accumulated errors as Invalid<Nel<A>>
r8?