Method
ElementAtOrNone
func ElementAtOrNone<T>(index: int) -> Optional<T>
Declaring type: EnumerableOption<T>
Namespace: System.Linq
Assembly: Raven.Core.dll
Source file: LinqExtensions.rvn
Extension from EnumerableOption<T>.ElementAtOrNone
Returns the element at index as Some, or None when the index is out of range.
Parameters
| Name | Type | Description |
|---|---|---|
self |
IEnumerable<T> | |
index |
Int32 |
Return value
Optional<T>