1. Re: Constructing an array value continued
- Posted by doug edmunds <dae at WORLDACCESSNET.COM> Aug 20, 1997
- 609 views
JIRI wrote: > there are unmatched braces in your example, You are absolutely right, my apologies. The correct line should be: my_data = {{"dog",{"beagle","spaniel", {"shepherd",{"large","small"}}}, {"colors",{"black","white"}}}} 7 {'s and 7 }'s my_data [1] = { "dog", { "beagle", "spaniel", {"shepherd",{"large","small"}}}, {"colors",{"black","white"}} } my_data[1] [2] { "beagle", "spaniel", {"shepherd",{"large","small"}} } my_data[1][2] [3] { "shepherd", {"large","small"} } You are right about the value too. my_data[1][2][3][1] = "shepherd" , not "large" the correct value for "large" is my_data[1][2][3][2][1] Mea culpa