init(object:)
Creates and returns a set that contains a single given object.
Declaration
convenience init(object: Any)Parameters
- object:
The object to add to the new set.
objectreceives a Retain message after being added to the set.
Return Value
A new set that contains a single member, object.