This code:
let example = [10, 11, 12, 13, 14, 15];
Js.log(example);
produces this output:
[ 10, [ 11, [ 12, [Array] ] ] ]
Though technically correct, as the generated code is a JavaScript array, this seems highly confusing, since Reason arrays and lists are two very different things.
From what I understand, on previous versions of ReasonML, the output read Object
instead of Array
Is the word Array
something that can be changed to either List
or ...
, or would this break the universe?