lastIndexOf

fun lastIndexOf(o: Any?): Int

Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element.

More formally, returns the highest index i such that Objects.equals(o, get(i)), or -1 if there is no such index.

Return

Last index of the element, or -1 if the list does not contain the element.