Table (type)

From ComputerCraft Wiki
Revision as of 14:25, 10 May 2013 by Cranium (Talk | contribs) (consolidate is not the same as consult)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The table type implements associative arrays that can be indexed with any value (except nil). Tables can contain values of all types (except nil), and are the sole data structuring mechanism in Lua; they can be used to represent ordinary arrays, symbol tables, sets, records, graphs, trees, anything. See the Tables tutorial for more information on how and why Tables are important.

For a more in-depth and concise explanation of types, please consult the Lua 5.1 Official Manual.