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

10 lines
176 B
Kotlin
Raw Normal View History

2017-01-02 09:33:27 +01:00
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) }
}