Function remove_sparse_indices

Source
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.