lua_oop/oop/utils.lua
2026-01-01 16:50:43 +01:00

16 lines
253 B
Lua

local function deepcopy(t)
local new = {}
for k, v in pairs(t) do
if type(v) == "table" then
new[k] = deepcopy(v)
else
new[k] = v
end
end
return new
end
return {
deepcopy = deepcopy
}