Does the pseudo-class `Map.Entry<K,V>` (tha...
# getting-started
v
Does the pseudo-class
Map.Entry<K,V>
(that appears when you select only one entry of a Map) works exactly the same as
Pair<K,V>
? Are there any differences that should be taken care of?
d
It's not a pseudo-class. It's an interface. One important difference is that for mutable maps the entry lets you modify the value while iterating.
v
Ok! I have found in https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/index.html for example the Array, but I don't find the docs about Map. How could I search for them for future uses? Thanks 😃
(ok, done: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html, I still need some practice with the docs website)