Table (type)

From ComputerCraft Wiki
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.