Contents

objects(at:)

Returns the objects in the ordered set at the specified indexes.

Declaration

func objects(at indexes: IndexSet) -> [Any]

Parameters

  • indexes:

    The indexes.

Return Value

The returned objects are in the ascending order of their indexes in indexes, so that object in returned ordered set with higher index in indexes will follow the object with smaller index in indexes.

Discussion

Raises an rangeException if any location in indexes exceeds the bounds of the array, of if indexes is nil.

See Also

Accessing Set Members