Difference between revisions of "flat table"

(Created page with "We use the term flat table to denote a table which doesn't contain any other (nested) tables. <source lang='lua'> -- Flat table flatTable = { 'foo', 'bar',...")
 
 
(One intermediate revision by one other user not shown)
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|sequence}}
+
{{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