I have a List of Map:
I want to sum the value and group them by key value in the most efficient way so it becomes:
C = 24, B = 40, A = 80
B4X:
Dim list = List[
(MyMap) {"A"=10, "B"=5, "C"=3}
(MyMap) {"A"=10, "B"=5, "C"=3}
(MyMap) {"A"=10, "B"=5, "C"=3}
(MyMap) {"A"=10, "B"=5, "C"=3}
(MyMap) {"A"=10, "B"=5, "C"=3}
(MyMap) {"A"=10, "B"=5, "C"=3}
(MyMap) {"A"=10, "B"=5, "C"=3}
(MyMap) {"A"=10, "B"=5, "C"=3}
]
I want to sum the value and group them by key value in the most efficient way so it becomes:
C = 24, B = 40, A = 80