I'm trying to create an array of strings so that I can modify the contents of the strings depending on the input parameter of a function. I've only started to use OCaml recently so I may be missing something simple here. Currently I have:
let myArray = Array.make x "" in
for i = 0 to Array.length myArray do
myArray[i] = "SOME STRING HERE";
done;
However when doing this, I get the following error when performing ocamlbuild
Error: This expression has type string array This is not a function; it cannot be applied.