kotlin.collections.indexOfLast

indexOfLast

inline fun <T> Iterable<T>.indexOfLast(
    predicate: (T) -> Boolean
): Int

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

inline fun <T> List<T>.indexOfLast(
    predicate: (T) -> Boole