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