Created
April 26, 2015 17:56
-
-
Save exelotl/d5fc67cc8bfbad62489b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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