AnyhowResultIterableExtensions<S> extension

on

Methods

toResult() Result<List<S>>

Available on Iterable<Result<S>>, provided by the AnyhowResultIterableExtensions 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 becomes the root to the rest of the errors.