A.Vector.intersperse
You're seeing just the function
intersperse
, go back to A.Vector module for more information.
Specs
Intersperses separator
between each element of the vector
.
Runs in linear time.
Examples
iex> A.Vector.new(1..6) |> A.Vector.intersperse(nil)
vec([1, nil, 2, nil, 3, nil, 4, nil, 5, nil, 6])