sumNum<T extends num> function

dynamic sumNum<T extends num>(
  1. Iterable<T> l
)

Sum elements.

Implementation

sumNum<T extends num>(Iterable<T> l) {
  num result = 0;
  for (num n in l) {
    result += n;
  }

  return result;
}