Sum and product of an array: Difference between revisions

Content added Content deleted
No edit summary
m (Reduce size of TOC)
Line 518: Line 518:


=={{header|OCaml}}==
=={{header|OCaml}}==
===Arrays===
'''Arrays'''
(* ints *)
(* ints *)
let a = [| 1; 2; 3; 4; 5 |];;
let a = [| 1; 2; 3; 4; 5 |];;