A.Vector.last
You're seeing just the function
last
, go back to A.Vector module for more information.
Specs
Returns the last element in the vector
or default
if vector
is empty.
Runs in constant time (actual, not effective).
Examples
iex> A.Vector.new(1..10_000) |> A.Vector.last()
10_000
iex> A.Vector.new() |> A.Vector.last()
nil