Is there an equivalent of Array.reduce to sum up values of an iterator?
Array.reduce
Consider the below Map whose values method returns an iterator:
Map