mean property

num mean

Returns the mean of this list.

Implementation

num get mean {
  num sum = 0;

  for (var i in this) {
    sum += i;
  }

  return sum / length;
}