Function index_utils::remove_sparse_indices [−][src]
pub fn remove_sparse_indices<T>(vector: &mut Vec<(usize, T)>, indices: &[usize])
Expand description
Reduce the size of the vector by removing values.
The method operates in place.
Arguments
vector
:Vec
to remove indices from.indices
: A sorted slice of indices to remove.