We use the term flat table to denote a table which doesn't contain any other (nested) tables.
-- Flat table
flatTable = {
'foo',
'bar',
'baz',
'qux',
-- ...
}
-- Nested tables
nestedTables = {
foo = {
'bar',
'baz',
'qux',
},
-- ...
} In the context of love threads, a flat table is understood to not contain tables, functions, userData or a metatable.
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/flat_table