Kotlin HashMap map()
Syntax & Examples


Syntax of HashMap.map()

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

fun <K, V, R> Map<out K, V>.map( transform: (Entry<K, V>) -> R ): List<R>

This map() extension function of HashMap returns a list containing the results of applying the given transform function to each entry in the original map.