Martin Nordholts
10/31/2019, 3:19 PMval map: Map<String, Int>? = mutableMapOf("one" to 3)
map?.["one"] // <- Why is this not allowed?
map?.get("one") // <- Which is equivalent to this, which works
Slava Sukhochev
10/31/2019, 3:23 PMMartin Nordholts
10/31/2019, 3:25 PMmarstran
10/31/2019, 3:25 PMmap?.let { it["one"] }
. The ?
just doesn't work with the operator syntax.Ruckus
10/31/2019, 3:26 PMAnastasia Finogenova
10/31/2019, 5:43 PM