A.Vector.last

You're seeing just the function last, go back to A.Vector module for more information.
Link to this function

last(vector, default \\ nil)

View Source

Specs

last(t(val), default) :: val | default when val: value(), default: term()

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