Method
ElementAtOrError
static func ElementAtOrError<T, E>(self: IEnumerable<T>, index: int, errorFactory: () -> E) -> Result<T, E>
Type: EnumerableOption<T>
Namespace: System.Linq
Assembly: Raven.Core.dll
Source file: LinqExtensions.rvn
Returns the element at index as Ok, or an error when the index is out of range.