objects(at:)
Returns an array containing the objects in the array at the indexes specified by a given index set.
Declaration
func objects(at indexes: IndexSet) -> [Any]Return Value
An array containing the objects in the array at the indexes specified by indexes.
Discussion
The returned objects are in the ascending order of their indexes in indexes, so that object in returned array with higher index in indexes will follow the object with smaller index in indexes.
Raises an rangeException if any location in indexes exceeds the bounds of the array, indexes is nil.