https://kotlinlang.org logo
Title
v

victor-mntl

11/25/2019, 4:10 PM
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

diesieben07

11/25/2019, 4:12 PM
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

victor-mntl

11/25/2019, 4:15 PM
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)