Averages/Arithmetic mean: Difference between revisions
m
→{{header|langur}}
Langurmonkey (talk | contribs) |
Langurmonkey (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 1,981:
We could use fold() to write a function that takes an array and calculates the mean.
<syntaxhighlight lang="langur">val .mean =
writeln " custom: ", .mean([7, 3, 12])
|