Instance Method

addObjects(from:)

Adds the objects contained in another given array to the end of the receiving array’s content.

Declaration

func addObjects(from otherArray: [Any])

Parameters

otherArray

An array of objects to add to the end of the receiving array’s content.

See Also

Adding Objects

func add(Any)

Inserts a given object at the end of the array.

func insert(Any, at: Int)

Inserts a given object into the array’s contents at a given index.

func insert([Any], at: IndexSet)

Inserts the objects in the provided array into the receiving array at the specified indexes.

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