indexOf

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

Returns the index of the first equal element, or -1 when no element matches.