Was wondering if someone can help me with this con...
# getting-started
c
Was wondering if someone can help me with this concept. I have a class that stores a
MutableMap<Int, Int>
. Something like this:
Copy code
class Foo {
    private val myMap = mutableMapOf<Int, Int>()
}
I want to allow other classes to have read-only access to this map. How can I do that?