Twidere-App-Android-Twitter.../twidere/src/main/kotlin/org/mariotaku/ktextension/MapExtensions.kt

10 lines
176 B
Kotlin

package org.mariotaku.ktextension
/**
* Created by mariotaku on 2017/1/2.
*/
fun <K, V> MutableMap<K, V>.removeAll(keys: Collection<K>) {
keys.forEach { remove(it) }
}