This returns the sum of the provided list
static int sum(List<int> list) => list.reduce((a, b) => a + b);