removeIf

open fun <E> removeIf(@NonNull collection: Collection<E>, @NonNull filter: (E) -> Boolean): Boolean

Removes all elements from the collection which pass the filter

Return

Whether an element was removed