productOfElements function

num productOfElements(
  1. Iterable<num> l
)

Multiply elements together

Implementation

num productOfElements(Iterable<num> l) {
  num result = 1;
  for (num n in l) {
    result *= n;
  }
  return result;
}