init(set:)
Initializes a newly allocated set and adds to it objects from another given set.
Declaration
convenience init(set: Set<AnyHashable>)Parameters
- set:
A set containing objects to add to the receiving set. Each object is retained as it is added.
Return Value
An initialized objects set containing the objects from set. The returned set might be different than the original receiver.