std.tbl.copy

std.tbl

copy(source_table) -> copy

Create a deep copy of a table, handling cyclic references

Recursively copies all key–value pairs from source_table into a new table. Cyclic references are detected and preserved (the copy will contain the same cycle structure). Metatables are NOT copied.