copy (HashTable)
Makes a copy of a table, copying all its entries.
Arguments
table0
is the HashTable to copy.
Return values
table1
is the resulting HashTable.
Complexity
O(size)
Example
Output:
TRUE
a:
{ key: 34; value: "small"; }
{ key: 35; value: "element"; }
b:
{ key: 34; value: "element"; }
{ key: 35; value: "element"; }
{ key: 38; value: "element"; }
{ key: 40; value: "bigElement"; }
{ key: 45; value: "bigBigElement"; }