Kotlin HashMap none()
Syntax & Examples


Syntax of HashMap.none()

There are 2 variations for the syntax of HashMap.none() extension function. They are:

1.
fun <K, V> Map<out K, V>.none(): Boolean

This extension function returns true if the map has no entries.

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

This extension function returns true if no entries match the given predicate.