Kotlin HashMap filterNot()
Syntax & Examples
Syntax of HashMap.filterNot()
The syntax of HashMap.filterNot() extension function is:
fun <K, V> Map<out K, V>.filterNot( predicate: (Entry<K, V>) -> Boolean ): Map<K, V>
This filterNot() extension function of HashMap returns a new map containing all key-value pairs not matching the given predicate.