∪ (union)
Gives the union of two sets.
Syntax
-
A ∪ B
-
A
andB
are sets
-
Description
If A
and B
are sets, then A ∪ B
is the union of A
and B
.
The ∪
operator is implemented by the union
function.
Examples
A ≔ { 1, 2, 3, 4, 5 }
{4, 5, 1, 2, 3}
B ≔ { 0, 2, 4, 6, 8, 10 }
{4, 6, 10, 2, 8, 0}
A ∪ B
{6, 10, 2, 3, 4, 5, 1, 8, 0}
See also
-
Set operators (list)