Difference between revisions of "Table"
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Supported platforms:''' android | + | <languages /> |
− | + | <!-- GIDEROSOBJ:table --> | |
− | + | '''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]] | |
− | + | <br/> | |
+ | '''<translate>Available since</translate>:''' Gideros 2011.6 | ||
+ | <br/> | ||
+ | |||
+ | === <translate>Description</translate> === | ||
+ | <translate>This library provides generic functions for table manipulation. It provides all its functions inside the table table.</translate> | ||
+ | <translate> | ||
+ | <br/> | ||
+ | |||
+ | Most functions in the table library assume that the table represents an array or a list. For these functions, when we talk about the "length" of a table we mean the result of the length operator. | ||
+ | </translate> | ||
+ | <br/> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{|- | {|- | ||
− | | style="width: 50%;"| | + | | style="width: 50%; vertical-align:top;"| |
− | === Methods === | + | === <translate>Methods</translate> === |
− | [[table.concat]] | + | [[Special:MyLanguage/table.concat|table.concat]] ''<translate>returns concatenated table elements i to j separated by sep</translate>'' |
− | [[table.getn]] | + | <br/> |
− | + | [[Special:MyLanguage/table.getn|table.getn]] ''<translate>returns size of table, or n field, or table.setn value, or 1 less first index with nil value | |
− | [[table.insert]] | + | [Deprecated in Lua 5.1, use # operator]</translate>'' |
− | [[table.remove]] | + | <br/> |
− | [[table.sort]] | + | [[Special:MyLanguage/table.insert|table.insert]] ''<translate>insert value at location pos in table, default pos=n 1</translate>'' |
− | | style="width: 50%;"| | + | <br/> |
− | === Events === | + | [[Special:MyLanguage/table.remove|table.remove]] ''<translate>removes element at pos from table, default pos=n</translate>'' |
− | === Constants === | + | <br/> |
+ | [[Special:MyLanguage/table.sort|table.sort]] ''<translate>sorts in-place elements 1 to n, comp(v1,v2- true if v1<v2, default <</translate>'' | ||
+ | <br/> | ||
+ | <!-- GIDEROSMTD:table.sort(table,comp) sorts in-place elements 1 to n, comp(v1,v2- true if v1<v2, default < --> | ||
+ | |||
+ | | style="width: 50%; vertical-align:top;"| | ||
+ | === <translate>Events</translate> === | ||
+ | === <translate>Constants</translate> === | ||
|} | |} | ||
+ | |||
+ | {{GIDEROS IMPORTANT LINKS}} |
Revision as of 16:09, 30 January 2020
Available since: Gideros 2011.6
Description
This library provides generic functions for table manipulation. It provides all its functions inside the table table.
Most functions in the table library assume that the table represents an array or a list. For these functions, when we talk about the "length" of a table we mean the result of the length operator.
Methodstable.concat returns concatenated table elements i to j separated by sep
|
EventsConstants |