I have a key-value map, the key is index of some d...
# codereview
a
I have a key-value map, the key is index of some data, looks like
(key = 1, value = 200), (key = 2, value = 348)
. Knowing that the index will increase by 1, any smart way to sum up the value from index
4
to
8
?