Difference between revisions of "table"

(Created page with 'The table type implements associative arrays. An associative array is an array that can be indexed not only with numbers, but also with strings or any other value of the language…')
 
Line 1: Line 1:
 
The table type implements associative arrays. An associative array is an array that can be indexed not only with numbers, but also with strings or any other value of the language, except nil. Moreover, tables have no fixed size; you can add as many elements as you want to a table dynamically. Tables are the main (in fact, the only) data structuring mechanism in Lua, and a powerful one. See [http://www.lua.org/pil/2.5.html Programming in Lua].
 
The table type implements associative arrays. An associative array is an array that can be indexed not only with numbers, but also with strings or any other value of the language, except nil. Moreover, tables have no fixed size; you can add as many elements as you want to a table dynamically. Tables are the main (in fact, the only) data structuring mechanism in Lua, and a powerful one. See [http://www.lua.org/pil/2.5.html Programming in Lua].
 +
 +
[[Category:Data Types]][[Category:Lua]]

Revision as of 07:50, 9 June 2010

The table type implements associative arrays. An associative array is an array that can be indexed not only with numbers, but also with strings or any other value of the language, except nil. Moreover, tables have no fixed size; you can add as many elements as you want to a table dynamically. Tables are the main (in fact, the only) data structuring mechanism in Lua, and a powerful one. See Programming in Lua.