Tuple4ValidatedNelOps<EE, A, B, C, D> extension
Functions available on a tuple of ValidatedNels.
- on
-
- (ValidatedNel<
EE, A> , ValidatedNel<EE, B> , ValidatedNel<EE, C> , ValidatedNel<EE, D> )
- (ValidatedNel<
Methods
-
mapN<
E> (Function4< A, B, C, D, E> fn) → ValidatedNel<EE, E> -
Applies
fn
to the values of each respective tuple member if all values are a Valid. If any item is an Invalid, the accumulation of all Invalid instances is returned. -
tupled(
) → ValidatedNel< EE, (A, B, C, D)> - If all items of this tuple are a Valid, the respective items are turned into a tuple and returned as a ValidatedNel. If any item is an Invalid, the accumulation of all Invalid instances is returned.