lua-users home
lua-l archive

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


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} }