kotlin-stdlib / kotlin.sequences / lastIndexOf lastIndexOf Common JVM JS Native 1.0 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 .