Table: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: A table is an array-like data storage type. They are mostly used for bigger data storage. Tables can be indexed not only with numbers but also with other data types, for example with strin...)
 
mNo edit summary
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
A table is an array-like data storage type. They are mostly used for bigger data storage.
A table is an array-like data storage type. They are mostly used for bigger data storage.
Tables can be indexed not only with numbers but also with other data types, for example with strings and MTA [[elements]].
Tables can be indexed not only with numbers but also with other data types, for example with strings and MTA [[elements]].<br />
Here is a list of every default table manipulation function present in Lua.
 
* [http://www.lua.org/manual/5.1/manual.html#pdf-table.concat table.concat]
* [http://www.lua.org/manual/5.1/manual.html#pdf-table.insert table.insert]
* [http://www.lua.org/manual/5.1/manual.html#pdf-table.maxn table.maxn]
* [http://www.lua.org/manual/5.1/manual.html#pdf-table.remove table.remove]
* [http://www.lua.org/manual/5.1/manual.html#pdf-table.sort table.sort]
* [http://www.lua.org/manual/5.1/manual.html#pdf-unpack unpack]
 
==See also==
==See also==
[http://www.lua.org/pil/2.5.html Tables at lua.org]
[http://www.lua.org/pil/2.5.html Tables at lua.org]
[[Category:Scripting Concepts]]
[[Category:Scripting Concepts]]
[[ar:Table]]
[[DE:table]]
[[en:Table]]
[[hu:table]]
[[RU:Table]]

Latest revision as of 18:05, 21 February 2021

A table is an array-like data storage type. They are mostly used for bigger data storage. Tables can be indexed not only with numbers but also with other data types, for example with strings and MTA elements.
Here is a list of every default table manipulation function present in Lua.

See also

Tables at lua.org