[src]

Function std::slice::from_elem

pub fn from_elem<T: Clone>(n_elts: uint, t: T) -> ~[T]

Creates and initializes an owned vector.

Creates an owned vector of size n_elts and initializes the elements to the value t.