Piorun Posted July 19, 2013 Share Posted July 19, 2013 Hi guys, I want to delete something from table and move other parts of table to this place (one place back). I dont explain it good so i show example. My table: tab = {1,2,3,4,5,6} And i want to delete 5th part of this table so ill take something like that: tab = {1,2,3,4,__,6} I want now to move 6th, 7th, 8th... back. Something like that: tab = {1,2,3,4,6} How? Link to comment
Vector Posted July 19, 2013 Share Posted July 19, 2013 table.remove (tab, 5); -- will do all the job. -- the first argument is the table and the second, the index of the element. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now