This tag refers to the table type in Lua that implements associative arrays.
If I have a list of items like this: local items = { "apple", "orange", "pear", "banana" } how do I check if "…
list lua lua-tableI'm trying to figure out the equivalent of: foo = [] foo << "bar" foo << "baz" I don't want …
lua lua-tableI have a lua table that I use as a hashmap, ie with string keys : local map = { foo = 1, bar = 2 } I …
lua key lua-tableI have this array, with some values (int) and I want to check if a value given by the user …
lua lua-tableWhat's the most efficient way to determine if a table is empty (that is, currently contains neither array-style values nor …
lua lua-tableRecently I wrote a bit of Lua code something like: local a = {} for i = 1, n do local copy = a -- …
lua lua-tableI need to merge two tables, with the contents of the second overwriting contents in the first if a given …
merge lua lua-tableORIGINAL POST Given that there is no built in function in Lua, I am in search of a function that …
lua concatenation lua-table