Skip to main content

at

pub fn at<T: Clone>(values: &[T], index: Option<usize>) -> T
Expand description

The element at an index; a read outside the array, undefined in JavaScript, aborts.