pub fn to_set(self) -> HashSet<(usize, N)>
    where N: Hash + Eq + Clone {
        self.indices().iter().map(|i| i.index())
            .zip(self.data.iter().cloned())
            .collect()
    }
/// Transform this vector into a set of (index, value) tuples
Transform this vector into a set of (index, value) tuples
Transform this vector into a set of ( index value ) tuples
pub fn to_set(self) -> HashSet<(usize, N)>
    where N: Hash + Eq + Clone {
        self.indices().iter().map(|i| i.index())
            .zip(self.data.iter().cloned())
            .collect()
    }
pub fn to_set ( self ) -> HashSet < ( usize , N ) > where N : Hash + Eq + Clone { self . indices ( ) . iter ( ) . map ( | i | i . index ( ) ) . zip ( self . data . iter ( ) . cloned ( ) ) . collect ( ) }
Transform this vector into a set of (index, value) tuples
Transform this vector into a set of ( index value ) tuples
self
self