Table.create: Difference between revisions
From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2022.3<br/> '''Class:''' table<br/> === Description === Creates a table with the array portion allocated to the given number of e..." |
m Text replacement - "<source" to "<syntaxhighlight" |
||
| Line 5: | Line 5: | ||
=== Description === | === Description === | ||
Creates a table with the array portion allocated to the given number of elements, optionally filled with the given value. | Creates a table with the array portion allocated to the given number of elements, optionally filled with the given value. | ||
< | <syntaxhighlight lang="lua"> | ||
(table) = table.create(count,value) | (table) = table.create(count,value) | ||
</source> | </source> | ||
Revision as of 13:31, 13 July 2023
Available since: Gideros 2022.3
Class: table
Description
Creates a table with the array portion allocated to the given number of elements, optionally filled with the given value. <syntaxhighlight lang="lua"> (table) = table.create(count,value) </source>
Parameters
count: (number) number of elements
value: (any) value to fill the table with optional
Return values
Returns (table) the newly created table