FirstOperator<T> extension

on

Methods

findFirst(Predicate1<T> predicate) Observable<T>

Available on Observable<T>, provided by the FirstOperator extension

Emits the first item of this Observable sequence matching the predicate, or emits an TooFewError otherwise.
findFirstOrDefault(Predicate1<T> predicate, T value) Observable<T>

Available on Observable<T>, provided by the FirstOperator extension

Emits the first item of this Observable sequence matching the predicate, or the provided default value otherwise.
findFirstOrElse(Predicate1<T> predicate, Map0<T> callback) Observable<T>

Available on Observable<T>, provided by the FirstOperator extension

Emits the first item of this Observable sequence matching the predicate, or evaluate the provided callback otherwise.
first() Observable<T>

Available on Observable<T>, provided by the FirstOperator extension

Emits the first item of this Observable, or emits an TooFewError otherwise.
firstOrDefault(T value) Observable<T>

Available on Observable<T>, provided by the FirstOperator extension

Emits the first item of this Observable, or the provided default value otherwise.
firstOrElse(Map0<T> callback) Observable<T>

Available on Observable<T>, provided by the FirstOperator extension

Emits the first item of this Observable, or evaluate the provided callback otherwise.