/// Zips two collections, creating a third one whose elements are
/// pairs created element-wise.
Zips two collections, creating a third one whose elements are
pairs created element-wise.
Zips two collections creating a third one whose elements are pairs created element - wise .
pub fn zip<U>(self, other: NonEmptyVec<U>) -> NonEmptyVec<(T, U)> {
        let (t, ts) = self.into_parts();
        let (u, us) = other.into_parts();
        let mut res = NonEmptyVec::new((t, u));
        res.extend(ts.zip(us));
        res
    }
pub fn zip < U > ( self , other : NonEmptyVec < U > ) -> NonEmptyVec < ( T , U ) > { let ( t , ts ) = self . into_parts ( ) ; let ( u , us ) = other . into_parts ( ) ; let mut res = NonEmptyVec :: new ( ( t , u ) ) ; res . extend ( ts . zip ( us ) ) ; res }
Zips two collections, creating a third one whose elements are
pairs created element-wise.
Zips two collections creating a third one whose elements are pairs created element - wise .
self
other
NonEmptyVec<U>