Instance Method

remove(_:)

Removes a given object from the set.

Declaration

func remove(_ object: Any)

Parameters

anObject

The object to remove from the set.

Discussion

If anObject is present in the set, decrements the count associated with it. If the count is decremented to 0, anObject is removed from the set. remove(_:) does nothing if anObject is not present in the set.

See Also

Adding and Removing Entries

func add(Any)

Adds a given object to the set.