Difference between revisions of "flat table"

m (fixed i18n (Is not sequence's i18n))
 
Line 21: Line 21:
 
}
 
}
 
</source>
 
</source>
 +
 +
In the context of love threads, a flat table is understood to not contain tables, functions, userData or a metatable.
  
 
[[Category:Lua]]
 
[[Category:Lua]]
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|flat table}}
 
{{i18n|flat table}}

Latest revision as of 23:46, 4 November 2016

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