IterableResultExtension<S, F extends Object> extension

on

Methods

toResult() Result<List<S>, List<F>>
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>
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.