ResultExtensionsReduce Method

Overload List

Reduce(IEnumerableRes) Reduces the collection of results to a single result:
  • returns Ok when all results are Ok;
  • Ok if the collection is empty;
  • the first Err otherwise.
ReduceT(IEnumerableResT) Reduces the collection of results to result of list of values:
  • returns Ok(List<T>) when all results are Ok;
  • Ok(empty list of T) if the collection is empty;
  • the first Err otherwise.

See Also