mutate

inline fun mutate(mutator: MutableList<E>.() -> Unit)

Mutates this List atomically. mutator can be evaluated multiple times if a concurrent edit occurs.