Member group

LastOrNone

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

Overloads / Variants

LastOrNone

static func LastOrNone<T>(self: IEnumerable<T>, predicate: T -> bool) -> Option<T>

Source file: LinqExtensions.rvn

Returns the last matching element as Some, or None when no element matches.

LastOrNone

static func LastOrNone<T>(self: IEnumerable<T>) -> Option<T>

Source file: LinqExtensions.rvn

Returns the last element as Some, or None for an empty sequence.