[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Array access indirection
- From: "David Manura" <dm.lua@...>
- Date: Sat, 20 Sep 2008 22:25:14 -0400
On Sat, Sep 20, 2008 at 8:45 PM, Tim Channon wrote:
> Can Lua do this? Add from a variable variable data to an
> existing array (table) of an array (table) in a variable of an
> exiting array (table) in a variable.
Not sure if I parsed that correctly, but does this do what you need?
t = { {1, 2}, {3, 4} }
table.insert(t, {5, 6})
-- result is t = { {1, 2}, {3, 4}, {5, 6} }