map
A Map is another generic collection that holds key-value pairs. For example, here’s a map containing a user’s name and a score:
A Map is another generic collection that holds key-value pairs. For example, here’s a map containing a user’s name and a score:
There’s a distinction between mutable and immutable data structures in Kotlin.