Anonymous user
Averages/Arithmetic mean: Difference between revisions
→{{header|OCaml}}: s/which/wish/
(→{{header|OCaml}}: mistake) |
(→{{header|OCaml}}: s/which/wish/) |
||
Line 593:
let mean_ints xs = mean_floats (List.map float_of_int xs)</lang>
the previous code is easier to read and understand, though if you
the fastest implementation to use in production code notice several points:
it is possible to save a call to List.length computing the length through
|