A collection containing a single element.
- Xcode 6.0.1+
- Swift Standard Library
You can use a
Collection instance when you need to efficiently represent a single value as a collection. For example, you can add a single element to an array by using a
Collection instance with the concatenation operator (