Contents

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) -> Int

Parameters

  • 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