A.Vector.pop_at

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

pop_at(vector, index, default \\ nil)

View Source

Specs

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

(Inefficient) Returns and removes the value at the specified index in the vector.

Returns the vector untouched if index is out of bounds. Supports negative indexing from the end of the vector.

Runs in linear time. Its usage is discouraged, see the Efficiency guide.

Examples

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