the index of the last occurrence of the element in the specified array, or U.max if the element does not occur.
AssertException if the length of the array is 0 AssertException if the return value is less than -1 or greater than the length of the array - 1.
Returns the index of the last occurrence of the specifed element