init(array:range:copyItems:)
Initializes a newly allocated set with the objects that are contained in the specified range of an array, optionally copying the items.
Declaration
convenience init(array set: [Any], range: NSRange, copyItems flag: Bool)Parameters
Return Value
An initialized ordered set containing a uniqued collection of the objects contained in specified range of the array.