OCaml By Examples

arrays

utop

Arrays are similar to lists.
utop # let a = [| 1; 2; 3 |];;
val a : int array = [|1; 2; 3|]
next: records