Difference between revisions of "Table.clone"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2022.3<br/> '''Class:''' table<br/> === Description === Duplicates a table. <source lang="lua"> table.clone(source,destination,de...")
 
Line 12: Line 12:
 
'''source''': (table) the source table<br/>
 
'''source''': (table) the source table<br/>
 
'''destination''': (table) a new table to clone to '''optional'''<br/>
 
'''destination''': (table) a new table to clone to '''optional'''<br/>
'''deepclone''': (boolean) should the cloning be recursive '''optional'''<br/>
+
'''deepclone''': (boolean) should the cloning be recursive '''optional, default = false'''<br/>
  
 
{{Table}}
 
{{Table}}

Revision as of 03:34, 12 June 2023

Available since: Gideros 2022.3
Class: table

Description

Duplicates a table.

table.clone(source,destination,deepclone)

Parameters

source: (table) the source table
destination: (table) a new table to clone to optional
deepclone: (boolean) should the cloning be recursive optional, default = false