sum function

int sum(
  1. Iterable<int> l
)

sum an Iterable of integers

Implementation

int sum(Iterable<int> l) => l.reduce((a, b) => a + b);