lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I'm trying to make a 2d array which uses strings as indices. I've tried this
but i get errors. what am I doing wrong?


array = {a,b}
array["a"] = {}
array["b"] ={}

array["a"]["a"] = {1}
array["a"]["b"] = {1}

array["b"]["a"] = {2}
array["b"]["b"] = {2}