Creates a new instance of a collection containing the elements of a sequence.
Required. Default implementation provided.
SDK
- Xcode 10.0+
Framework
- Swift Standard Library
Declaration
init<S>(_ elements: S) where S : Sequence, Self.Element == S.Element
Parameters
elementsThe sequence of elements for the new collection.
elementsmust be finite.