Sum and product of an array: Difference between revisions

Content added Content deleted
m (Reduce size of TOC)
m (Reduce size of TOC)
Line 528: Line 528:
Array.fold_left ( *.) 1.0 a;;
Array.fold_left ( *.) 1.0 a;;


===Lists===
'''Lists'''
(* ints *)
(* ints *)
let x = [1; 2; 3; 4; 5];;
let x = [1; 2; 3; 4; 5];;