Instance Method

setSet(_:)

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

Declaration

func setSet(_ otherSet: Set<AnyHashable>)

Parameters

otherSet

The set whose members replace the receiving set's content.

See Also

Combining and recombining sets

func union(Set<AnyHashable>)

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

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software