Orx.Fun.Result (C#)
C#
Show/Hide TOC
Result
Extensions
Reduce
T
(IEnumerable
Res
T
) Method
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.
Definition
Namespace:
Orx.Fun.Result
Assembly:
Orx.Fun.Result (in Orx.Fun.Result.dll) Version: 1.3.0+344c8bdd6f720ccfb2d8db7c61b76cf02be18f5f
C#
Copy
public
static
Res
<
List
<T>>
Reduce
<T>(
this
IEnumerable
<
Res
<T>>
results
)
Parameters
results
IEnumerable
Res
T
Collection of results of T.
Type Parameters
T
Type of the underlying value.
Return Value
Res
List
T
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerable
Res
T
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
ResultExtensions Class
Reduce Overload
Orx.Fun.Result Namespace
In This Article
Definition
Parameters
Type Parameters
Return Value
Usage Note
See Also