Returns the sum of values.
values
static num sum(Iterable<num> values) { var total = 0.0; for (final v in values) { total += v; } return total == total.toInt() ? total.toInt() : total; }