lua-users home
lua-l archive

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


On 11/02/2013, at 11:39 AM, iain morland <iain@iainmorland.net> wrote:

> However, I can't get this to work:
> ((example[1])[3])=5

$ lua
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> example={{"Red",1,2},{"Green",3,4}}
> example[1][3] = 5
> print(example[1][3])
5