A.Vector.first

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

first(vector, default \\ nil)

View Source

Specs

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

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