MutableSet::zip
Returns a MutableSet
where each value is a Pair
that combines the
value of the current MutableSet
and the provided Traversable
public function zip<Tu>(
Traversable<Tu> $traversable,
): MutableSet<nothing>;
If the number of values of the current ConstMap
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.
Note that some implementations of sets only support certain types of keys
(e.g., only int
or string
values allowed). In that case, this method
could thrown an exception since a Pair
wouldn't be supported/
Parameters
Traversable<Tu>
$traversable
- TheTraversable
to use to combine with the elements of the currentMutableSet
.
Returns
MutableSet<nothing>
- TheMutableSet
that combines the values of the currentMutableSet
with the providedTraversable
.