IterableResultExtensions<S, F extends Object> extension

on

Methods

toResult() Result<List<S>, List<F>>

Available on Iterable<Result<S, F>>, provided by the IterableResultExtensions extension

Transforms an Iterable of results into a single result where the ok value is the list of all successes and err value is a list of all failures.
toResultEager() Result<List<S>, F>

Available on Iterable<Result<S, F>>, provided by the IterableResultExtensions extension

Transforms an Iterable of results into a single result where the ok value is the list of all successes. If any error is encountered, the first error is used as the error result.