Andrea Giuliano
10/13/2020, 4:10 PMval myMap = sortedMapOf<String, Collection<Int>>()
Is there a way to put into the map and overflow in the collection in case the key already exist in the map?diesieben07
10/13/2020, 4:10 PMmyMap.getOrPut(key) { MyCollection() } += myValue
Andrea Giuliano
10/13/2020, 4:12 PMnanodeath
10/13/2020, 4:23 PMAndrea Giuliano
10/13/2020, 4:26 PMmyMap.getOrPut(key) { MyCollection() } += myValue
kotlin expects that I put the list in a val before doing +=diesieben07
10/13/2020, 4:30 PMAndrea Giuliano
10/13/2020, 4:30 PM