A.Vector.delete_at

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

delete_at(vector, index)

View Source

Specs

delete_at(t(val), index()) :: t(val) when val: value()

(Inefficient) Returns a copy of vector without the value at the specified index.

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> A.Vector.delete_at(vector, 4)
vec([1, 2, 3, 4, 6, 7, 8])
iex> A.Vector.delete_at(vector, -9)
vec([1, 2, 3, 4, 5, 6, 7, 8])