HH\ImmVector::zip
Returns an ImmVector where each element is a Pair that combines the
element of the current ImmVector and the provided Traversable
public function zip<Tu>(
Traversable<Tu> $traversable,
): ImmVector<Pair<Tv, Tu>>;
If the number of elements of the current ImmVector are not equal to the
number of elements in the Traversable, then only the combined elements
up to and including the final element of the one with the least number of
elements is included.
Parameters
Traversable<Tu>$traversable- TheTraversableto use to combine with the elements of the currentImmVector.
Returns
ImmVector<Pair<Tv,Tu>>- AnImmVectorthat combines the values of the currentImmVectorwith the providedTraversable.
Examples
See [Vector::zip](</hack/reference/class/Vector/zip/#examples>) for usage examples.