/// <summary> /// The first element of a sequence that satisfies a predicate. /// </summary> public static TOut Last <TOut, TProducer>( this SpanEnumerable <TOut, TProducer> spanEnum, Predicate <TOut> predicate) where TProducer : struct, IProducer <TOut> => spanEnum.Where(predicate).Last();
/// <summary> /// The first element of a sequence that satisfies a predicate. /// </summary> public static TOut FirstOrDefault <TOut, TProducer>( this SpanEnumerable <TOut, TProducer> spanEnum, Predicate <TOut> predicate) where TProducer : struct, IProducer <TOut> => spanEnum.Where(predicate).FirstOrDefault();
/// <summary> /// The last element of a sequence that satisfies a predicate. /// </summary> public static TOut LastOrDefault <TOut>( this SpanEnumerable <TOut> spanEnum, Predicate <TOut> predicate) => spanEnum.Where(predicate).LastOrDefault();
/// <summary> /// The single element of a sequence that satisfies a predicate. /// </summary> public static TOut Single <TIn, TOut, TProducer>( this SpanEnumerable <TIn, TOut, TProducer> spanEnum, Predicate <TOut> predicate) where TProducer : struct, IProducer <TIn, TOut> => spanEnum.Where(predicate).Single();
/// <summary> /// The first element of a sequence that satisfies a predicate. /// </summary> public static TOut First <TOut>( this SpanEnumerable <TOut> spanEnum, Predicate <TOut> predicate) => spanEnum.Where(predicate).First();
/// <summary> /// The single element of a sequence that satisfies a predicate. /// </summary> public static TOut Single <TOut>( this SpanEnumerable <TOut> spanEnum, Predicate <TOut> predicate) => spanEnum.Where(predicate).Single();