HH\ImmMap::zip
Returns an ImmMap where each value is a Pair that combines the value
of the current ImmMap and the provided Traversable
public function zip<Tu>(
Traversable<Tu> $traversable,
): ImmMap<Tk, Pair<Tv, Tu>>;
If the number of values of the current ImmMap 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.
The keys associated with the current ImmMap remain unchanged in the
returned ImmMap.
Parameters
Traversable<Tu>$traversable- TheTraversableto use to combine with the elements of the currentImmMap.
Returns
ImmMap<Tk,Pair<Tv, Tu>>- TheImmMapthat combines the values of the currentImmMapwith the providedTraversable.
Examples
See [Map::zip](</hack/reference/class/Map/zip/#examples>) for usage examples.