sam
sequenceValidated
val p1: (T) -> ValidatedNel<E, A> val p2: (T) -> ValidatedNel<E, B> p1(t).flatMap { a -> p2(t).map { b-> Pair(a, b) } }
Wesley Hartford
zip
p1(t).zip(p2(t)) { a, b -> Pair(a, b) }
raulraja
either
Either
either<E> { Pair(p1.bind(), p2.bind()) }
Invalid
A modern programming language that makes developers happier.