move_to_front

Function move_to_front 

Source
pub fn move_to_front<T: Clone>(arr: &[T], idx: usize) -> Vec<T>
Expand description

Move element at idx to the front of the slice. Returns a new vec.