5 lines
96 B
Text
5 lines
96 B
Text
func mean f[] .
|
|
for v in f[] : s += v
|
|
return s / len f[]
|
|
.
|
|
print mean [ 1 2 3 4 5 6 7 8 ]
|