Creates a new, empty array.
SDK
- Xcode 6.0.1+
Framework
- Swift Standard Library
Declaration
Discussion
This is equivalent to initializing with an empty array literal. For example:
Creates a new, empty array.
SDK
Framework
This is equivalent to initializing with an empty array literal. For example:
init<S>(S)
Creates a new instance of a collection containing the elements of a sequence.
init<S>(S)
Creates an array containing the elements of a sequence.
init(repeating: Element, count: Int)
Creates a new array containing the specified number of a single, repeated value.