[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Newbie] Index a matrix with strings
- From: Eike Decker <eike@...>
- Date: Thu, 8 Nov 2007 02:49:44 +0100
Hi
Can you specify how you want to access your matrix?
like
mymatrix["bar"]["tex"] = "x"
or
mymatrix[1][2] = "foo"
?
Eike
> Hello,
>
> I am new to Lua, so please bear with me. I am trying to build a two
> dimensional array like in:
> http://www.lua.org/pil/11.2.html
>
> 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
>