Skip to content

Instantly share code, notes, and snippets.

@exelotl
Created April 26, 2015 17:56
Show Gist options
  • Save exelotl/d5fc67cc8bfbad62489b to your computer and use it in GitHub Desktop.
Save exelotl/d5fc67cc8bfbad62489b to your computer and use it in GitHub Desktop.
function remove(t,n)
for i=n, count(t) do
t[i] = t[i+1]
end
end
tbl = {10,20,30,40,50}
remove(tbl, 2)
foreach(tbl, print)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment