indexOfLastOrNull

fun <T> Iterable<T>.indexOfLastOrNull(predicate: (T) -> Boolean): Int?

Returns index of the last element matching the given predicate, or null if the iterable does not contain such element.