Initializer

init()

Initializes a newly allocated set.

Declaration

init()

Return Value

A set.

Discussion

This method is a designated initializer of NSSet.

See Also

Initializing a Set

init(array: [Any])

Initializes a newly allocated set with the objects that are contained in a given array.

init(objects: UnsafePointer<AnyObject>?, count: Int)

Initializes a newly allocated set with a specified number of objects from a given C array of objects.

init(set: Set<AnyHashable>)

Initializes a newly allocated set and adds to it objects from another given set.

init(set: Set<AnyHashable>, copyItems: Bool)

Initializes a newly allocated set and adds to it members of another given set.