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 PMShawn
06/06/2019, 7:34 PMputIfAbsent(other: Map<K, V>)Dominaezzz
06/06/2019, 7:34 PMMap<K, V>.putIfAbsent(other: Map<K, V>)?Dominaezzz
06/06/2019, 7:34 PMDominaezzz
06/06/2019, 7:34 PMShawn
06/06/2019, 7:35 PMputAll, couldn’t you?Dominaezzz
06/06/2019, 7:36 PMDominaezzz
06/06/2019, 7:37 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 PMShawn
06/06/2019, 7:40 PMfold over a collection of all your mapsShawn
06/06/2019, 7:40 PMreduce into a mutableMap or somethingDominaezzz
06/06/2019, 7:41 PMDominaezzz
06/06/2019, 7:42 PMDominaezzz
06/06/2019, 7:42 PMShawn
06/06/2019, 7:48 PMShawn
06/06/2019, 7:48 PMDominaezzz
06/06/2019, 7:49 PM