Creates an empty set.
SDK
- Xcode 6.3+
Framework
- Swift Standard Library
Declaration
Discussion
This is equivalent to initializing with an empty array literal. For example:
Creates an empty set.
SDK
Framework
This is equivalent to initializing with an empty array literal. For example:
init(minimum Capacity: Int)
Creates an empty set with preallocated space for at least the specified number of elements.
init<S>(S)
Creates a new set from a finite sequence of items.
init<Source>(Source)
Creates a new set from a finite sequence of items.