firstIndexThat
Returns the zero-based index of the first element in this iterable for which predicate returns true.
The predicate receives the index and each element in iteration order.
Receiver
This iterable to search in iteration order.
Return
The index of the first matching element, or -1 if no element satisfies predicate.
Parameters
Called with the index and each element; should return true for the index to return.
Type Parameters
The element type of this iterable.
Returns the zero-based index of the first element in this list for which predicate returns true.
Unlike the Iterable overload, this implementation iterates without allocating an indexed view.
Receiver
This list to search from start to end.
Return
The index of the first matching element, or -1 if no element satisfies predicate.
Parameters
Called with the index and each element; should return true for the index to return.
Type Parameters
The element type of this list.
Returns the zero-based index of the first element in this object array for which predicate returns true.
The predicate receives the index and each element from start to end.
Receiver
This object array to search from start to end.
Return
The index of the first matching element, or -1 if no element satisfies predicate.
Parameters
Called with the index and each element; should return true for the index to return.
Type Parameters
The element type of this object array.
Returns the zero-based index of the first element in this byte array for which predicate returns true.
The predicate receives the index and each element from start to end.
Receiver
This byte array to search from start to end.
Return
The index of the first matching element, or -1 if no element satisfies predicate.
Parameters
Called with the index and each element; should return true for the index to return.
Returns the zero-based index of the first element in this short array for which predicate returns true.
The predicate receives the index and each element from start to end.
Receiver
This short array to search from start to end.
Return
The index of the first matching element, or -1 if no element satisfies predicate.
Parameters
Called with the index and each element; should return true for the index to return.
Returns the zero-based index of the first element in this int array for which predicate returns true.
The predicate receives the index and each element from start to end.
Receiver
This int array to search from start to end.
Return
The index of the first matching element, or -1 if no element satisfies predicate.
Parameters
Called with the index and each element; should return true for the index to return.
Returns the zero-based index of the first element in this long array for which predicate returns true.
The predicate receives the index and each element from start to end.
Receiver
This long array to search from start to end.
Return
The index of the first matching element, or -1 if no element satisfies predicate.
Parameters
Called with the index and each element; should return true for the index to return.
Returns the zero-based index of the first element in this float array for which predicate returns true.
The predicate receives the index and each element from start to end.
Receiver
This float array to search from start to end.
Return
The index of the first matching element, or -1 if no element satisfies predicate.
Parameters
Called with the index and each element; should return true for the index to return.
Returns the zero-based index of the first element in this double array for which predicate returns true.
The predicate receives the index and each element from start to end.
Receiver
This double array to search from start to end.
Return
The index of the first matching element, or -1 if no element satisfies predicate.
Parameters
Called with the index and each element; should return true for the index to return.
Returns the zero-based index of the first element in this boolean array for which predicate returns true.
The predicate receives the index and each element from start to end.
Receiver
This boolean array to search from start to end.
Return
The index of the first matching element, or -1 if no element satisfies predicate.
Parameters
Called with the index and each element; should return true for the index to return.
Returns the zero-based index of the first element in this char array for which predicate returns true.
The predicate receives the index and each element from start to end.
Receiver
This char array to search from start to end.
Return
The index of the first matching element, or -1 if no element satisfies predicate.
Parameters
Called with the index and each element; should return true for the index to return.