pub fn to_array<A, T>(slice: &[T]) -> A where A: Default + AsMut<[T]>, T: Copy,
Function that is not part of the language but is offered as a helper for tests, etc.