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
contains(_:)enumerateObjects(at:options:using:)enumerateObjects(_:)enumerateObjects(options:using:)firstObjectlastObjectobject(at:)subscript(_:)index(of:)index(of:inSortedRange:options:usingComparator:)index(ofObjectAt:options:passingTest:)index(ofObjectPassingTest:)index(_:ofObjectPassingTest:)indexes(ofObjectsAt:options:passingTest:)indexes(ofObjectsPassingTest:)