# where abstract method

GenericStream<T> where(

1. Predicate<T> predicate

)

Returns the first element of this stream that matches the given predicate.

## Example

    final firstEven = GenericStream.range(1, 10)
        .where((n) => n % 2 == 0)
        .first();

Throws NoSuchElementException if no element matches the predicate.

## Implementation

    GenericStream<T> where(Predicate<T> predicate);