boxchop
pub fn new_copies<T>(len: usize, val: T) -> Box<[T]> where T: Copy,
Creates a boxed slice of len copies of val.
len
val
let twelves = new_copies(2, 12); assert_eq!( twelves, Box::from([12, 12]) );