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