1 line
52 B
Scala
1 line
52 B
Scala
def mean(s: Seq[Int]) = s.foldLeft(0)(_+_) / s.size
|
def mean(s: Seq[Int]) = s.foldLeft(0)(_+_) / s.size
|