Hi,
In Javascript if I wanted to add key-value pairs that I would want to be able to retrieve easily I would start out with an empty object and add key value pairs that I could access easily.
For example:
let obj = {}
arr.map(x, i => obj[i] = x)
Then obj[3] would return me exactly what I was expecting.
What would be the ReasonML way to do this since Records are fixed in field names and types.
Thanks