addtion method

int addtion(
  1. List<int> items
)

Implementation

int addtion(List<int> items) {
  int sum = items.fold(0, (p, c) => p + c);
  return sum;
}