TArray.LastIndexOf<T> Method
Overloads
| LastIndexOf<T>(array of T, T) |
Searches for the specified element and returns the index of the last occurrence within the entire array. |
| LastIndexOf<T>(array of T, T, Integer) |
Searches for the specified element and returns the index of the last occurrence within the range of elements in the array that extends from the specified index to the last element. |
| LastIndexOf<T>(array of T, T, Integer, Integer) |
Searches for the specified element and returns the index of the last occurrence within the range of elements in the array that starts at the specified index and contains the specified number of elements. |
| LastIndexOf<T>(array of T, T, Integer, Integer, IEqualityComparer<T>) |
Searches for the specified element and returns the index of the last occurrence within the range of elements in the array that starts at the specified index and contains the specified number of elements using the specified equality comparer. |
Searches for the specified element and returns the index of the last occurrence within the entire array.
class function LastIndexOf<T>(const values: array of T; const item: T): Integer
Type Parameters
- T
Parameters
- values
- array of T
- item
- T
Returns
Searches for the specified element and returns the index of the last occurrence within the range of elements in the array that extends from the specified index to the last element.
class function LastIndexOf<T>(const values: array of T; const item: T; index: Integer): Integer
Type Parameters
- T
Parameters
- values
- array of T
- item
- T
- index
- Integer
Returns
Searches for the specified element and returns the index of the last occurrence within the range of elements in the array that starts at the specified index and contains the specified number of elements.
class function LastIndexOf<T>(const values: array of T; const item: T; index: Integer; count: Integer): Integer
Type Parameters
- T
Parameters
- values
- array of T
- item
- T
- index
- Integer
- count
- Integer
Returns
Searches for the specified element and returns the index of the last occurrence within the range of elements in the array that starts at the specified index and contains the specified number of elements using the specified equality comparer.
class function LastIndexOf<T>(const values: array of T; const item: T; index: Integer; count: Integer; const comparer: IEqualityComparer<T>): Integer
Type Parameters
- T
Parameters
- values
- array of T
- item
- T
- index
- Integer
- count
- Integer
- comparer
- IEqualityComparer<T>