I'm trying to figure out the equivalent of:
foo = []
foo << "bar"
foo << "baz"
I don't want to have to come up with an incrementing index. Is there an easy way to do this?
lualua-table
I'm trying to figure out the equivalent of:
foo = []
foo << "bar"
foo << "baz"
I don't want to have to come up with an incrementing index. Is there an easy way to do this?
Best Answer
You are looking for the
insert
function, found in thetable
section of the main library.