pub fn vec_set<T: Clone>(v: &[T], index: usize, new_val: T) -> Vec<T>
Replace the element at index with new_val.
index
new_val