TABLE扩展模块新增一个函数
This commit is contained in:
@@ -37,6 +37,13 @@ function TABLE.copy(org)
|
|||||||
return L
|
return L
|
||||||
end
|
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
|
--For all things in new if same type in old, push to old
|
||||||
function TABLE.update(new,old)
|
function TABLE.update(new,old)
|
||||||
for k,v in next,new do
|
for k,v in next,new do
|
||||||
|
|||||||
Reference in New Issue
Block a user