Comparison of programming languages (associative array): Difference between revisions

Content deleted Content added
m Disambiguated link (immutable)
Scgtrp (talk | contribs)
m Lua: I your grammar fixes happy.
Line 509:
=== Lua ===
In [[Lua programming language|Lua]], table is a fundamental type that can be used either as array (numerical index, fast) or as associative array.
The keys and values can be of any type, except nil. The following with focusfocuses on non-numerical indexes.
 
A table literal is written as <code>{ value, key = value, [index] = value, ["non id string"] = value }</code>. For example: