ConstVector::zip

Returns a ConstVector where each element is a Pair that combines the element of the current ConstVector and the provided Traversable

Description

public function zip<Tu>(
  Traversable<Tu> $traversable,
): ConstVector<Pair<Tv, Tu>>;

If the number of elements of the ConstVector 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

Return Values