Revision as of 08:05, 9 August 2021 by Benkoo(talk | contribs)(Created page with "Table in Lua is a kind of associative array, one can see its example here: <syntaxhighlight language=Lua> t = {} t["foo"] = 123 -- assign the value 123 to the key "fo...")
Table in Lua is a kind of associative array, one can see its example here:
t = {}
t["foo"] = 123 -- assign the value 123 to the key "foo" in the table
t[3] = "bar" -- assign the value "bar" to the key 3 in the table
= t["foo"]
123