Join Slack
Powered by
Was wondering if someone can help me with this con...
# getting-started
c
Chris Cordero
04/12/2020, 10:31 PM
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?
Open in Slack
Previous
Next