Member group
SingleOrNone
Type: EnumerableOption<T>
Namespace: System.Linq
Assembly: Raven.Core.dll
Source file: LinqExtensions.rvn
Overloads / Variants
SingleOrNone
static func SingleOrNone<T>(self: IEnumerable<T>, predicate: T -> bool) -> Option<T>
Source file: LinqExtensions.rvn
Returns the only matching element as Some, or None unless exactly one element matches.
SingleOrNone
static func SingleOrNone<T>(self: IEnumerable<T>) -> Option<T>
Source file: LinqExtensions.rvn
Returns the only element as Some, or None unless exactly one element exists.