Join Slack
Powered by
<@U0AAQKT9Q>: I currently have a data structure th...
# language-proposals
j
jkbbwr
07/20/2016, 9:30 AM
@ilya.gorbunov
: I currently have a data structure that looks like
Copy code
var balances = mapOf<String, Int>()
Currently to update it It either needs to be mutable or I do the following
Copy code
balances[person] = person to balances[person] ?: 0 + 10
Open in Slack
Previous
Next