removeIf

inline fun removeIf(predicate: (E) -> Boolean)

Removes any values for which the specified predicate returns true.