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