stkent
12/23/2017, 3:55 AM.withDefault on a map, the default behavior seems to be lost if I call another method (e.g. toMutableMap) on that map instance. Is that expected/documented behavior? I couldn't find clear rules in the docs.karelpeeters
12/23/2017, 10:32 AMwithDefault breaks the Map contract in that it "contains" things that are not listed in map.entries. toMutableMap has to create a new map by iterating the entries, so I think this behaviour is kind of expected.andyb
12/23/2017, 12:06 PMmap.getOrPut() to insert missing entries into the map on the retrieval.stkent
12/23/2017, 3:26 PM