findFirst method

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

Emits the first item of this Observable sequence matching the predicate, or emits an TooFewError otherwise.

Implementation

Observable<T> findFirst(Predicate1<T> predicate) =>
    findFirstOrElse(predicate, throwFunction0(TooFewError()));