fn interleave<X>(self, other: X) -> Interleave<Self, X::Iter>
    where
        X: IntoParallelIterator<'a, Item = Self::Item>,
        X::Iter: IndexedParallelIterator<'a, Item = Self::Item>,
    {
        Interleave::new(self, other.into_par_iter())
    }
/// Interleaves elements of this iterator and the other given
/// iterator. Alternately yields elements from this iterator and
/// the given iterator, until both are exhausted. If one iterator
/// is exhausted before the other, the last elements are provided
/// from the other.
///
/// # Examples
///
/// ```
/// use asparit::*;
/// let (x, y) = (vec![1, 2], vec![3, 4, 5, 6]);
/// let r: Vec<i32> = x.into_par_iter().interleave(y).collect().exec();
/// assert_eq!(r, vec![1, 3, 2, 4, 5, 6]);
/// ```
Interleaves elements of this iterator and the other given
iterator. Alternately yields elements from this iterator and
the given iterator, until both are exhausted. If one iterator
is exhausted before the other, the last elements are provided
from the other.
Interleaves elements of this iterator and the other given iterator . Alternately yields elements from this iterator and the given iterator until both are exhausted . If one iterator is exhausted before the other the last elements are provided from the other .
fn interleave<X>(self, other: X) -> Interleave<Self, X::Iter>
    where
        X: IntoParallelIterator<'a, Item = Self::Item>,
        X::Iter: IndexedParallelIterator<'a, Item = Self::Item>,
    {
        Interleave::new(self, other.into_par_iter())
    }
fn interleave < X > ( self , other : X ) -> Interleave < Self , X :: Iter > where X : IntoParallelIterator < ' a , Item = Self :: Item > , X :: Iter : IndexedParallelIterator < ' a , Item = Self :: Item > , { Interleave :: new ( self , other . into_par_iter ( ) ) }
Interleaves elements of this iterator and the other given
iterator.
Interleaves elements of this iterator and the other given iterator .
self
other
X
self
other
X
examples
None