Dim listOfMaps As List
listOfMaps.Initialize
listOfMaps.Add(CreateMap("A":"10", "B":"5", "C":"3", "D":"5", "E":"3"))
listOfMaps.Add(CreateMap("A":"10", "B":"5", "C":"3", "E":"3"))
listOfMaps.Add(CreateMap("A":"10", "B":"5", "C":"3"))
listOfMaps.Add(CreateMap("A":"10", "B":"5", "C":"3","D":"5","E":"3"))
listOfMaps.Add(CreateMap("A":"10", "B":"5", "C":"3"))
listOfMaps.Add(CreateMap("A":"10", "B":"5", "C":"3"))
listOfMaps.Add(CreateMap("A":"10", "B":"5", "C":"3"))
listOfMaps.Add(CreateMap("A":"10", "B":"5", "C":"3"))
Dim MapUniqueKey As Map
MapUniqueKey.Initialize
For Each MapNumber As Map In listOfMaps
For Each Key As String In MapNumber.Keys
Dim Value As Int = MapNumber.Get(Key) + MapUniqueKey.GetDefault(Key, 0)
MapUniqueKey.Put(Key, Value)
Next
Next
Dim sb As StringBuilder
sb.Initialize
For Each k As String In MapUniqueKey.Keys
Log($"${k} = ${MapUniqueKey.Get(k)}"$)
sb.Append($"${k} = ${MapUniqueKey.Get(k)}, "$)
Next
Dim s As String = sb.ToString
s = s.SubString2(0, s.LastIndexOf(","))
Log(s) 'A = 80, B = 40, C = 24, D = 10, E = 9