Top "Lua-table" questions

This tag refers to the table type in Lua that implements associative arrays.

Display contents of tables in lua

What I'm trying to do is display the content of table using the following code in Lua. local people = { { name = "…

lua lua-table
How to quickly initialise an associative table in Lua?

In Lua, you can create a table the following way : local t = { 1, 2, 3, 4, 5 } However, I want to create an associative table, …

lua initialization lua-table
How do I get the highest integer in a table in Lua?

How do I get the highest integer in a table in Lua?

lua integer lua-table
Lua - Execute a Function Stored in a Table

I was able to store functions into a table. But now I have no idea of how to invoke them. …

function lua function-pointers lua-table
table inside table in Lua

How can I get the data which is a table inside a table, i mean like this: t = { {a, b, …

lua lua-table
How to check if two tables(objects) have the same value in Lua

I wanna check if two tables have the same value in Lua, but didn't find the way. I use the …

lua lua-table
Popping the first element off an array

I have an array x in Lua. I would like to set head = x[1] and rest = the rest of the …

arrays lua lua-table
lua: iterate through all pairs in table

I have a sparse lua table and I need to iterate over it. The Problem is, it seems that lua …

loops lua lua-table
Iterate through Lua Table

I am trying to iterate through a lua table but I keep getting this error: invalid key to 'next' I …

c lua lua-table
How do I get first table value in Lua

Is there an easier way to do this? I need to get the very first value in a table, whose …

lua lua-table