kotlin.collections.indexOf

indexOf

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

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

fun <T> List<T>.indexOf(element: T): Int

Returns first index of 登录查看完整内容