Lua: table.remove does not work with 2D array
snippet in lua

Lua: table.remove does not work with 2D array

user4798

t = { 
  { 7, "123" }, 
  { 8, "234" }, 
  { 9, "345" }
}

table.remove(t, 1)

for k, v in pairs(t) do
  print(k, v[1], v[2])
end