pub fn to_arr<A, T>(slice: &[T]) -> Awhere A: AsMut<[T]> + Default, T: Clone,
Convert a slice into array
slice