flat table

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.

Other Languages