ResultExtensionsMapReduce Method

Overload List

MapReduceT(IEnumerableT, FuncT, Res) Applies the result mapper to the collection and reduces it to a single result:
  • returns Ok when all results are Ok;
  • Ok if the collection is empty;
  • the first Err otherwise.
MapReduceT, TOut(IEnumerableT, FuncT, ResTOut) Applies the result mapper to the collection and reduces it to a single result:
  • 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