lua-users home
lua-l archive

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


Can you specify how you want to access your matrix?


mymatrix["bar"]["tex"] = "x"


mymatrix[1][2] = "foo"



> Hello,
> I am new to Lua, so please bear with me. I am trying to build a two
> dimensional array like in:
> However, I would like to index this "matrix" with strings. Is it
> possible? I have tried to do the same thing as in the example, but it
> does not work.
> Thanks in advance,
> Tony