removeFirstWhere

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

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

At most one element is removed.