A.Vector.pop_last

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

pop_last(vector, default \\ nil)

View Source

Specs

pop_last(t(val), default) :: {val | default, t(val)}
when val: value(), default: term()

Removes the last value from the vector and returns both the value and the updated vector.

Leaves the vector untouched if empty.

Runs in effective constant time.

Examples

iex> vector = A.Vector.new(1..8)
iex> {8, updated} = A.Vector.pop_last(vector); updated
vec([1, 2, 3, 4, 5, 6, 7])
iex> {nil, updated} = A.Vector.pop_last(A.Vector.new()); updated
vec([])