RecordToResult4<A, B, C, D, Z extends Object> extension

on

Methods

toResult() Result<(A, B, C, D), List<Z>>

Available on (Result<A, Z>, Result<B, Z>, Result<C, Z>, Result<D, Z>), provided by the RecordToResult4 extension

Transforms a Record of Results into a single Result. The Ok value is a Record of all Result's Ok values. The Err value is the List of all Err values.
toResultEager() Result<(A, B, C, D), Z>

Available on (Result<A, Z>, Result<B, Z>, Result<C, Z>, Result<D, Z>), provided by the RecordToResult4 extension

Transforms a Record of Results into a single Result. The Ok value is a Record of all Result's Ok values. The Err value is the first Err encountered.