Dominaezzz
06/06/2019, 7:29 PMMap<K, V>.putIfAbsent(key: K, value: V)
? putAll
overrides existing values sadly.Shawn
06/06/2019, 7:33 PMputIfAbsent(other: Map<K, V>)
Dominaezzz
06/06/2019, 7:34 PMMap<K, V>.putIfAbsent(other: Map<K, V>)
?Shawn
06/06/2019, 7:35 PMputAll
, couldn’t you?Dominaezzz
06/06/2019, 7:36 PMMutableMap<K, V>.putIfAbsent(other: Map<K, V>)
😅 .Shawn
06/06/2019, 7:37 PM+
in the preferred order?Dominaezzz
06/06/2019, 7:39 PMvar
😅.Shawn
06/06/2019, 7:39 PMfold
over a collection of all your mapsreduce
into a mutableMap or somethingDominaezzz
06/06/2019, 7:41 PMShawn
06/06/2019, 7:48 PMDominaezzz
06/06/2019, 7:49 PM