Anonymous user
Averages/Arithmetic mean: Difference between revisions
→{{header|OCaml}}: mistake
(→{{header|OCaml}}: using pattern matching instead of if-then-else, as usual in ocaml) |
(→{{header|OCaml}}: mistake) |
||
Line 589:
These functions return a float:
<lang ocaml>let mean_floats
let mean_ints xs = mean_floats (List.map float_of_int xs)</lang>
|