Difference between revisions of "table"
m (included link to other languages) |
|||
Line 1: | Line 1: | ||
− | + | From the Lua 5.1 [http://www.lua.org/manual/5.1/manual.html#2.2 reference manual §2.2]: | |
− | [[ | + | The type table implements associative arrays, that is, arrays that can be indexed not only with [[number]]s, but with any value (except [[nil]]). Tables can be heterogeneous; that is, they can contain values of all types (except [[nil]]). Tables are the sole data structuring mechanism in Lua; they can be used to represent ordinary arrays, symbol tables, sets, records, graphs, trees, etc. To represent records, Lua uses the field name as an index. The language supports this representation by providing a.name as syntactic sugar for a["name"]. There are several convenient ways to create tables in Lua (see [http://www.lua.org/manual/5.1/manual.html#2.5.7 §2.5.7]). |
+ | |||
+ | [[Category:Lua]] | ||
== Other Languages == | == Other Languages == | ||
{{i18n|table}} | {{i18n|table}} |
Latest revision as of 23:05, 5 February 2012
From the Lua 5.1 reference manual §2.2:
The type table implements associative arrays, that is, arrays that can be indexed not only with numbers, but with any value (except nil). Tables can be heterogeneous; that is, they can contain values of all types (except nil). Tables are the sole data structuring mechanism in Lua; they can be used to represent ordinary arrays, symbol tables, sets, records, graphs, trees, etc. To represent records, Lua uses the field name as an index. The language supports this representation by providing a.name as syntactic sugar for a["name"]. There are several convenient ways to create tables in Lua (see §2.5.7).
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info