Initializer

init()

Initializes a newly allocated array.

Declaration

init()

Return Value

An array.

Discussion

This method is a designated initializer.

See Also

Creating and Initializing a Mutable Array

init(capacity: Int)

Returns an array, initialized with enough memory to initially hold a given number of objects.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software