lua-users home
lua-l archive

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


> t = {1,2,3,4,5} table.insert(t, -8, 5) for k,v in pairs(t) do print(k,v) end
2       1
3       2
4       3
5       4
6       5
-8      5

complete output from the last example apologies


-- 
-Patrick Donnelly

"One of the lessons of history is that nothing is often a good thing
to do and always a clever thing to say."

-Will Durant