Averages/Arithmetic mean: Difference between revisions
m
→{{header|langur}}
Langurmonkey (talk | contribs) |
Langurmonkey (talk | contribs) |
||
Line 1,629:
{{VI solution|LabVIEW_Averages_Arithmetic_mean.png}}
=={{header|
The built-in mean() function works with an array, hash, or range of numbers.
We could use fold() to write a function that takes an array and calculates the mean.
<lang
writeln .mean([7, 3, 12])
|