A.Vector.append

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

Specs

append(t(val), val) :: t(val) when val: value()

Appends a value at the end of a vector.

Runs in effective constant time.

Examples

iex> A.Vector.new() |> A.Vector.append(:foo)
vec([:foo])
iex> A.Vector.new(1..5) |> A.Vector.append(:foo)
vec([1, 2, 3, 4, 5, :foo])