Kotlin HashMap toList()
Syntax & Examples
Syntax of HashMap.toList()
The syntax of HashMap.toList() extension function is:
fun <K, V> Map<out K, V>.toList(): List<Pair<K, V>>
This toList() extension function of HashMap returns a List containing all key-value pairs.