A.Vector.intersperse

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

intersperse(vector, separator)

View Source

Specs

intersperse(t(val), separator) :: t(val | separator)
when val: value(), separator: value()

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])