Array.firstIndex(of:) method
E1276185
UNEXPLORED
The Array.firstIndex(of:) method is a Swift standard library function that returns the index of the first occurrence of a given Equatable element in an array, or nil if it is not found.
All labels observed (1)
| Label | Occurrences |
|---|---|
| Array.firstIndex(of:) method canonical | 1 |
How this entity was disambiguated
This entity first appeared as the object of triple T17569389 — resolving that mention is where its identity was fixed. The disambiguator weighed these candidate entities and picked the highlighted one (or “None”, minting a new entity). This is how homonymy is resolved: the same surface form can point to different entities.
NED1
Entity disambiguation (via context triple)
gpt-5-mini-2025-08-07
Target entity: Array.firstIndex(of:) method Context triple: [Equatable, usedBy, Array.firstIndex(of:) method]
-
A.
NSArray
NSArray is an Objective-C class in Apple’s Foundation framework that represents an ordered, immutable collection of objects.
-
B.
NSFastEnumeration
NSFastEnumeration is an Objective-C protocol that enables efficient, fast enumeration of collections using the for-in syntax.
-
C.
NSRangeException
NSRangeException is an Objective-C exception type that indicates an attempt to access elements outside the valid bounds of a collection or range.
-
D.
Fibonacci search
Fibonacci search is a divide-and-conquer search algorithm for sorted arrays that uses Fibonacci numbers to determine probe positions instead of midpoints.
-
E.
NSFetchRequest
NSFetchRequest is a Core Data class used to define and execute queries for retrieving managed objects from a persistent store.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
NED2
Entity disambiguation (via description)
gpt-5-mini-2025-08-07
Target entity: Array.firstIndex(of:) method Target entity description: The Array.firstIndex(of:) method is a Swift standard library function that returns the index of the first occurrence of a given Equatable element in an array, or nil if it is not found.
-
A.
NSArray
NSArray is an Objective-C class in Apple’s Foundation framework that represents an ordered, immutable collection of objects.
-
B.
NSFastEnumeration
NSFastEnumeration is an Objective-C protocol that enables efficient, fast enumeration of collections using the for-in syntax.
-
C.
NSRangeException
NSRangeException is an Objective-C exception type that indicates an attempt to access elements outside the valid bounds of a collection or range.
-
D.
Fibonacci search
Fibonacci search is a divide-and-conquer search algorithm for sorted arrays that uses Fibonacci numbers to determine probe positions instead of midpoints.
-
E.
NSFetchRequest
NSFetchRequest is a Core Data class used to define and execute queries for retrieving managed objects from a persistent store.
- F. None of above. chosen
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.