A.Vector.zip

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

Specs

zip(t(val1), t(val2)) :: t({val1, val2}) when val1: value(), val2: value()

Zips corresponding elements from two vectors into one vector of tuples.

The size of the returned vector is the one of the smallest of the input vectors.

Runs in linear time.

iex> A.Vector.zip(A.Vector.new([1, 2, 3]), A.Vector.new([:a, :b, :c]))
vec([{1, :a}, {2, :b}, {3, :c}])
iex> A.Vector.zip(A.Vector.new(0..100), A.Vector.new([:a, :b, :c]))
vec([{0, :a}, {1, :b}, {2, :c}])