<Kotlin - How to increase value of mutableMap> I w...
# stackoverflow
u
Kotlin - How to increase value of mutableMap I wanna add 1 to a particular item value of mutableMap in Kotlin laguage. Below is what I made. Is there any way to make this code simple? enter code here map[1] = map[1]?.let {it -> it + 1 } ?: 1