From 4843133cf08b1a05c506665b5b84bdf6ccbea884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 4 Mar 2019 16:48:58 +0800 Subject: =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=8E=A8=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/vm/multi.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'server/src/vm/multi.lua') diff --git a/server/src/vm/multi.lua b/server/src/vm/multi.lua index 93900a36..f4f21b86 100644 --- a/server/src/vm/multi.lua +++ b/server/src/vm/multi.lua @@ -64,6 +64,12 @@ function mt:eachValue(callback) end end +function mt:merge(other) + other:eachValue(function (_, value) + self:push(value) + end) +end + return function () local self = setmetatable({}, mt) return self -- cgit v1.2.3