Tuple4ValidatedNelOps<E, T1, T2, T3, T4> extension
Provides additional functions on tuple with 4 ValidatedNels.
- on
-
- (ValidatedNel<
E, T1> , ValidatedNel<E, T2> , ValidatedNel<E, T3> , ValidatedNel<E, T4> )
- (ValidatedNel<
Properties
-
tupled
→ ValidatedNel<
E, (T1, T2, T3, T4)> -
Available on (ValidatedNel<
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.E, T1> , ValidatedNel<E, T2> , ValidatedNel<E, T3> , ValidatedNel<E, T4> ), provided by the Tuple4ValidatedNelOps extensionno setter
Methods
-
mapN<
T5> (Function4< T1, T2, T3, T4, T5> fn) → ValidatedNel<E, T5> -
Available on (ValidatedNel<
AppliesE, T1> , ValidatedNel<E, T2> , ValidatedNel<E, T3> , ValidatedNel<E, T4> ), provided by the Tuple4ValidatedNelOps extensionfnto 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.