removeBy

fun <T> Map<Int, T>.removeBy(predicate: (T) -> Boolean): Map<Int, T>