TABLE扩展模块新增一个函数

This commit is contained in:
MrZ626
2021-08-02 16:53:31 +08:00
parent 1abaa0e5c5
commit 3b215eb7af

View File

@@ -37,6 +37,13 @@ function TABLE.copy(org)
return L
end
--For all things in new, push to old
function TABLE.cover(new,old)
for k,v in next,new do
old[k]=v
end
end
--For all things in new if same type in old, push to old
function TABLE.update(new,old)
for k,v in next,new do