indexOf

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

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

The operation is terminal.

Since Kotlin

1.0