Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Cloning
- ]]
- clone = function(source)
- if (type(source) ~= "table") then
- return source;
- end
- local result = { };
- for k, v in pairs(source) do
- result[clone(k)] = clone(v);
- end
- return result;
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement