RosettaCodeData/Task/Sort-an-integer-array/OCaml/sort-an-integer-array-1.ml

3 lines
53 B
OCaml

let nums = [|2; 4; 3; 1; 2|]
Array.sort compare nums