kotlin.collections.lastIndexOf

lastIndexOf

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

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

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

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