lua-table
Getting table entry index
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.[详细]
2022-12-17 01:27 分类:问答In Lua, how do I remove a table within a 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:[详细]
2022-12-13 03:25 分类:问答How to remove a lua table entry by its key?
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()[详细]
2022-12-11 16:14 分类:问答
加载中,请稍侯......