total method

int total(
  1. Map<String, int> m
)

The sum of m's counts over all rows.

Implementation

int total(Map<String, int> m) => m.values.fold(0, (a, b) => a + b);