You can do that with any list / map you create in ...
# rx
a
You can do that with any list / map you create in Kotlin. Sorry, I assumed “immutable” contextually (In a Kotlin discussion chat) meant that you needed to go to great lengths to modify it (Converting it to MutableMap for instance). You can defensive copy / wrap it with Collections.unmodifiableList like you’d normally do in Java. Kotlin doesn’t have the notion of truely immutable lists / maps because it doesn’t reinvent the wheel when it comes to a lot of those Java standard lib tools.