lastIndexOf

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

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

The operation is terminal.

Since Kotlin

1.0