fastRemoveIf

inline fun <L : MutableList<E>, RandomAccess, E> L.fastRemoveIf(predicate: (E) -> Boolean)

Deprecated

This method is less efficient than its reverse counterpart, which should be used where possible.

Replace with

fastRemoveIfReversed

no-alloc MutableList.removeIf which utilizes RandomAccess to get the elements.

This method is not thread safe. if the list is modified while this loop is running by an external source, the behavior is undefined.

Since

1.2.0

See also