Mark08/19/2020, 4:59 AM
now gives a compiler warning (though the IDE doesn’t complain) when trying to access items in
val retrievedList = myMap[someKey] ?: emptyList()
so I need to explicitly set
type or the
generic. I can’t seem to reproduce this in the kotlin playground, so can only assume there is some inconsistency caused by my gradle build scripts or some build caching issue.
ephemient08/19/2020, 3:41 PM
could work, right?
val retrievedList = myMap[someKey].orEmpty()