API Browser

Method

ToHashSetOrError

func ToHashSetOrError<T, E>(errorFactory: Exception -> E) -> Result<HashSet<T>, E>

Declaring type: EnumerableOption<T>
Namespace: System.Linq
Assembly: Raven.Core.dll
Source file: LinqExtensions.rvn

Extension from EnumerableOption<T>.ToHashSetOrError

Materializes the sequence as a hash set and maps any exception to an error.

Parameters

Name Type Description
self IEnumerable<T>
errorFactory Exception -> E

Return value

Result<HashSet<T>, E>