Skip to main content

first

Function first 

Source
pub fn first<S: Clone + 'static>(
    pred: impl Fn(&S) -> bool + 'static,
) -> Operator<S>
Expand description

first: emit the first value matching pred (or the first value), then COMPLETE.