Initializer

init(array:)

Initializes a newly allocated array by placing in it the objects contained in a given array.

Declaration

@nonobjc convenience init(array anArray: NSArray)

Return Value

An array initialized to contain the objects in `anArray``. The returned object might be different than the original receiver.

Discussion

Discussion: After an immutable array has been initialized in this way, it cannot be modified.