lastIndexOf

fun <T> Array<out T>.lastIndexOf(element: T): Int (source)
fun ByteArray.lastIndexOf(element: Byte): Int (source)
fun ShortArray.lastIndexOf(element: Short): Int (source)
fun IntArray.lastIndexOf(element: Int): Int (source)
fun LongArray.lastIndexOf(element: Long): Int (source)
fun FloatArray.lastIndexOf(element: Float): Int (source)
fun DoubleArray.lastIndexOf(element: Double): Int (source)
fun BooleanArray.lastIndexOf(element: Boolean): Int (source)
fun CharArray.lastIndexOf(element: Char): Int (source)

Returns last index of element, or -1 if the array does not contain element.

fun <T> Iterable<T>.lastIndexOf(element: T): Int (source)

Returns last index of element, or -1 if the collection does not contain element.

fun <T> List<T>.lastIndexOf(element: T): Int (source)

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