sum method

int sum()

Implementation

int sum() {
  return reduce((int a, int b) => a + b);
}