Hello,
I want to define an associative array like this
var = [
{ "100", [0, 1, 2] },
{ "101", [3, 4, 5] }
]
Essentially I want to be able to access an array of three numbers by specifying the custom index.
However, no matter what I try I cannot make it work.
I know I can define it as:
var["100"] = [0, 1, 2];
var["101"] = [1, 2, 3];
but I am setting this somewhere else and I'd prefer to be able to set it in a single statement.
Thanks,