Skip to content

at

In std/seq.

fn at(self, position: Int) : Option<T>

The element of self at position, or none past either end; a negative position counts from the end: [3, 1, 2].at(1) and [3, 1, 2][1] are 1.