indexOfObjectIdentical(to:in:)
Returns the lowest index within a specified range whose corresponding array value is equal to a given object .
Declaration
func indexOfObjectIdentical(to anObject: Any, in range: NSRange) -> IntParameters
- anObject:
An object.
- range:
The range of indexes in the array within which to search for
anObject.
Return Value
The lowest index within range whose corresponding array value is identical to anObject. If none of the objects within range is identical to anObject, returns NSNotFound.
Discussion
Objects are considered identical if their object addresses are the same.
See Also
Related Documentation
Finding Objects in an Array
index(of:)index(of:in:)indexOfObjectIdentical(to:)indexOfObject(passingTest:)indexOfObject(options:passingTest:)indexOfObject(at:options:passingTest:)indexesOfObjects(passingTest:)indexesOfObjects(options:passingTest:)indexesOfObjects(at:options:passingTest:)index(of:inSortedRange:options:usingComparator:)