Join Slack
Powered by
with Kotlin IDEA seems to prefer this myMap[mykey]...
# getting-started
v
vinny2020
02/28/2020, 9:08 PM
with Kotlin IDEA seems to prefer this myMap[mykey] over this myMap.get(mykey) , is that the more idiomatic way to do things?
👌 14
b
Benni
03/08/2020, 1:16 AM
Yes, it has its own section on the Kotlin idioms page:
https://kotlinlang.org/docs/reference/idioms.html#accessing-a-map
👍🏽 1
Open in Slack
Previous
Next