removeLastWhere

inline fun <T> MutableList<T>.removeLastWhere(predicate: (T) -> Boolean): Boolean

Removes the last element matching predicate and returns true, or returns false if none matches.

At most one element is removed.