fn filter<O>(self, operation: O) -> Filter<Self, O>
    where
        O: Fn(&Self::Item) -> bool + Clone + Send + 'a,
    {
        Filter::new(self, operation)
    }
/// Applies `operation` to each item of this iterator, producing a new
/// iterator with only the items that gave `true` results.
///
/// # Examples
///
/// ```
/// use asparit::*;
///
/// let mut par_iter = (0..10).into_par_iter().filter(|x| x % 2 == 0);
///
/// let even_numbers: Vec<_> = par_iter.collect().exec();
///
/// assert_eq!(&even_numbers[..], &[0, 2, 4, 6, 8]);
/// ```
Applies `operation` to each item of this iterator, producing a new
iterator with only the items that gave `true` results.
Applies ` operation ` to each item of this iterator producing a new iterator with only the items that gave ` true ` results .
fn filter<O>(self, operation: O) -> Filter<Self, O>
    where
        O: Fn(&Self::Item) -> bool + Clone + Send + 'a,
    {
        Filter::new(self, operation)
    }
fn filter < O > ( self , operation : O ) -> Filter < Self , O > where O : Fn ( & Self :: Item ) -> bool + Clone + Send + ' a , { Filter :: new ( self , operation ) }
Applies `operation` to each item of this iterator, producing a new
iterator with only the items that gave `true` results.
Applies ` operation ` to each item of this iterator producing a new iterator with only the items that gave ` true ` results .
self
operation
O
self
operation
O
examples




let even_numbers: Vec<_> = par_iter.collect().exec().


let even_numbers : Vec<_ > = par_iter . collect () . exec () .