I’m a little confused by what an array is in OCaml. I know an array is mutable but how is that accomplished? I also know you can’t get a reference to an array element, only its value. I know I can create an array of references and the get that reference because that’s the value.
I’m a little confused as to what an array is… Is it just a reference to a block of memory that you can index into? Why can’t you get a reference to a position in a OCaml array?