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