OCaml Data Structures
Ocaml has predefined data structures of tuples, arrays, and lists. There are also mechanisms for defining your own data structures, such as records and variants. In this article, we will discuss about list and tuple.
1. List
List can be define as [ element 1 ; element 2 ; element 3; … ].