Method
ToArrayOrError
func ToArrayOrError<T, E>(errorFactory: Exception -> E) -> Result<T[], E>
Declaring type: EnumerableOption<T>
Namespace: System.Linq
Assembly: Raven.Core.dll
Source file: LinqExtensions.rvn
Extension from EnumerableOption<T>.ToArrayOrError
Materializes the sequence as an array and maps any exception to an error.
Parameters
| Name | Type | Description |
|---|---|---|
self |
IEnumerable<T> | |
errorFactory |
Exception -> E |
Return value
Result<T[], E>