Instance Method


Adds each object in another given set to the receiving set, if not present.


func union(_ otherSet: Set<AnyHashable>)



The set of objects to add to the receiving set.

See Also

Combining and recombining sets

func minus(Set<AnyHashable>)

Removes each object in another given set from the receiving set, if present.

func intersect(Set<AnyHashable>)

Removes from the receiving set each object that isn’t a member of another given set.

func setSet(Set<AnyHashable>)

Empties the receiving set, then adds each object contained in another given set.