IterableResultExtension<S, F extends Object> extension
Methods
-
toResult(
) → Result< List< S> , List<F> > -
Available on Iterable<
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.Result< , provided by the IterableResultExtension extensionS, F> > -
toResultEager(
) → Result< List< S> , F> -
Available on Iterable<
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.Result< , provided by the IterableResultExtension extensionS, F> >