mean static method

num mean(
  1. List<num> l
)

Calculates the arithmetic average of the given list of numbers.

Implementation

static num mean(List<num> l) => l.reduce((num p, num n) => p + n) / l.length;