Instance Method

addingObjects(from:)

Returns a new array that is a copy of the receiving array with the objects contained in another array added to the end.

Declaration

func addingObjects(from otherArray: [Any]) -> [Any]

Parameters

otherArray

An array.

Return Value

A new array that is a copy of the receiving array with the objects contained in otherArray added to the end.

See Also

Deriving New Arrays

func adding(Any)

Returns a new array that is a copy of the receiving array with a given object added to the end.

func filtered(using: NSPredicate)

Evaluates a given predicate against each object in the receiving array and returns a new array containing the objects for which the predicate returns true.

func subarray(with: NSRange)

Returns a new array containing the receiving array’s elements that fall within the limits specified by a given range.