indexOfObjectIdentical(to:)
Returns the lowest index whose corresponding array value is identical to a given object.
Declaration
func indexOfObjectIdentical(to anObject: Any) -> IntParameters
- anObject:
An object.
Return Value
The lowest index whose corresponding array value is identical to anObject. If none of the objects in the array 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:in:)indexOfObject(passingTest:)indexOfObject(options:passingTest:)indexOfObject(at:options:passingTest:)indexesOfObjects(passingTest:)indexesOfObjects(options:passingTest:)indexesOfObjects(at:options:passingTest:)index(of:inSortedRange:options:usingComparator:)