table copy table
This function makes a copy of the table with all contents. If the new table is already existing, then it will be initialized.
Indirect parameter passing is disabled
2
No. | Type | Description |
---|---|---|
1. input |
string | Name of existing table |
2. input |
string | Name of new table |
table initialize( t, {{ Name, Age }, { Ann, 45 }, { Dan, 35 }} );
table copy table ( t, u );
table list ( u );
0 : Name | Age
1 : Ann | 45
2 : Dan | 35