Join Slack
Powered by
What is the idiomatic way of cloning a mutableMap?...
# announcements
a
arthur
12/01/2016, 3:15 PM
What is the idiomatic way of cloning a mutableMap? I have one called translations and I am copying it in the following way which looks wrong to me but it does work
translations.map { it.key to it.value }.toMap()
2
Views
Open in Slack
Previous
Next