Tuple4ValidatedNelOps<E, T1, T2, T3, T4> extension

Provides additional functions on tuple with 4 ValidatedNels.

on

Properties

tupled ValidatedNel<E, (T1, T2, T3, T4)>

Available on (ValidatedNel<E, T1>, ValidatedNel<E, T2>, ValidatedNel<E, T3>, ValidatedNel<E, T4>), provided by the Tuple4ValidatedNelOps extension

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.
no setter

Methods

mapN<T5>(Function4<T1, T2, T3, T4, T5> fn) ValidatedNel<E, T5>

Available on (ValidatedNel<E, T1>, ValidatedNel<E, T2>, ValidatedNel<E, T3>, ValidatedNel<E, T4>), provided by the Tuple4ValidatedNelOps extension

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.