Instance Method

remove(_:)

Removes a given object from the set.

Declaration

func remove(_ object: Any)

Parameters

object

The object to remove from the set.

See Also

Adding and removing entries

func add(Any)

Adds a given object to the set, if it is not already a member.

func filter(using: NSPredicate)

Evaluates a given predicate against the set’s content and removes from the set those objects for which the predicate returns false.

func removeAllObjects()

Empties the set of all of its members.

func addObjects(from: [Any])

Adds to the set each object contained in a given array that is not already a member.