Ds\Set::union
Ds\Set::union
(PECL ds >= 1.0.0)
Ds\Set::union — Creates a new set using values from the current instance and another set.
Description
public Ds\Set Ds\Set::union ( Ds\Set $set )
Creates a new set that contains the values of the current instance as well as the values of another set
.
A ∪ B = {x: x ∈ A ∨ x ∈ B}
Parameters
-
set
-
The other set, to combine with the current instance.