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