I can\'t get table entry index. I need it to remove an item from table. I use table.insert to add entries 开发者_StackOverflow中文版to table.
For example: items = { [753] = { }, [192] = { }, [789] = { }, [791] = { }, [790] = { }, [776] = { }, } I would like to remove 789 and all data inside of it.I 开发者_JS百科tried both:
I have a lua table that I use as a hashmap, ie with string keys : local map = { foo = 1, bar = 2 } I would like to \"pop\" an element of this table identified by its key. There is a table.remove()