Re: Assigning a value to an index in a nested table
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Assigning a value to an index in a nested table
- From: Geoff Leyland <geoff_leyland@...>
- Date: 2013年2月11日 11:57:41 +1300
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