getSnapshot

open fun <T> getSnapshot(other: Collection<T>): List<T>

Returns a copy of the given list that is safe to iterate over and perform actions that may modify the original list.

See #303, #375, #322, #2262.