[−][src]Function glsp::arr_from_elem
pub fn arr_from_elem<T>(elem: T, reps: usize) -> Result<Root<Arr>, GError> where
T: Clone + IntoVal,
Constructs an array which contains reps
repetitions of elem
.
Returns an Err
if type conversion fails.