Creates a new set from a finite sequence of items.
SDK
- Xcode 10.2+
Framework
- Swift Standard Library
Declaration
Parameters
sequence
The elements to use as members of the new set.
Discussion
Use this initializer to create a new set from an existing sequence, like an array or a range: