Jakub Gwóźdź
10/14/2022, 7:36 AMValidated.zip(...)? Where the last parameter (combining function) also returns ValidatedNel, not the resulting value?simon.vergauwen
10/15/2022, 10:09 AMJakub Gwóźdź
10/15/2022, 10:56 AMval a: ValidatedNel<E,A> from one source and val b: ValidatedNel<E,B> from another. But cannot simply combine them in val c = a.zip(b,::f), because result can also fail for certain conditions from a and b.
What I went with is val c = a.zip(b, ::Pair).andThen{(a,b)->f(a,b)}.