Kotlin HashMap all()
Syntax & Examples


Syntax of HashMap.all()

The syntax of HashMap.all() extension function is:

fun <K, V> Map<out K, V>.all( predicate: (Entry<K, V>) -> Boolean ): Boolean

This all() extension function of HashMap returns true if all entries match the given predicate.