fn map<O, T>(self, operation: O) -> Map<Self, O>
    where
        O: Fn(Self::Item) -> T + Clone + Send,
        T: Send,
    {
        Map::new(self, operation)
    }
/// Applies `operation` to each item of this iterator, producing a new
/// iterator with the results.
///
/// # Examples
///
/// ```
/// use asparit::*;
///
/// let mut par_iter = (0..5).into_par_iter().map(|x| x * 2);
///
/// let doubles: Vec<_> = par_iter.collect().exec();
///
/// assert_eq!(&doubles[..], &[0, 2, 4, 6, 8]);
/// ```
Applies `operation` to each item of this iterator, producing a new
iterator with the results.
Applies ` operation ` to each item of this iterator producing a new iterator with the results .
fn map<O, T>(self, operation: O) -> Map<Self, O>
    where
        O: Fn(Self::Item) -> T + Clone + Send,
        T: Send,
    {
        Map::new(self, operation)
    }
fn map < O , T > ( self , operation : O ) -> Map < Self , O > where O : Fn ( Self :: Item ) -> T + Clone + Send , T : Send , { Map :: new ( self , operation ) }
Applies `operation` to each item of this iterator, producing a new
iterator with the results.
Applies ` operation ` to each item of this iterator producing a new iterator with the results .
self
operation
O
self
operation
O
examples




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


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