A.Vector.at
You're seeing just the function
at
, go back to A.Vector module for more information.
Specs
Finds the element at the given index
(zero-based).
Returns default
if index
is out of bounds.
Supports negative indexing from the end of the vector
.
Runs in effective constant time.
Examples
iex> A.Vector.new(1..1_000) |> A.Vector.at(555)
556
iex> A.Vector.new(1..1_000) |> A.Vector.at(1_000)
nil