Skip to main content

filter

Function filter 

Source
pub fn filter<A: 'static, Acc: 'static>(
    pred: impl Fn(&A) -> bool + Send + Sync + 'static,
) -> Transducer<A, Acc>
Expand description

Keep only items matching pred.