A.Vector.pop_last
You're seeing just the function
pop_last
, go back to A.Vector module for more information.
Specs
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([])