Usage
union(x,t)
union(x,y)
union!(x,t)
union!(x,y)
Signature
union: (%, %) %
Parameter | Type | Description |
---|---|---|
x,y | % | sets |
t | T | an element |
Returns
union(x,y) and union!(x,y) both return, while union(x,t) and union!(x,t) both return
.
Remarks
union! does not make a copy of, which is therefore modified after the call. It is unsafe to use the variable
after the call, unless it has been assigned to the result of the call, as in x := union!(x, y).