Tuple2EitherOps<EE, A, B> extension
Functions available on a tuple of Eithers.
Methods
-
mapN<
C> (Function2< A, B, C> fn) → Either<EE, C> -
Applies
fn
to the values of each respective tuple member if all values are a Right. If any item is a Left, the first Left encountered will be returned. -
tupled(
) → Either< EE, (A, B)> - If all items of this tuple are a Right, the respective items are turned into a tuple and returned as a Right. If any item is a Left, the first Left encountered is returned.