add(_:)
Adds a given object to the set.
Declaration
func add(_ object: Any)Parameters
- object:
The object to add to the set.
Discussion
If object is already a member, add(_:) increments the count associated with the object. If object is not already a member, it is sent a retain message.