aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/array.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/array.lua b/util/array.lua
index c33a5ef1..5461882a 100644
--- a/util/array.lua
+++ b/util/array.lua
@@ -35,6 +35,8 @@ local function new_array(self, t, _s, _var)
return setmetatable(t or {}, array_mt);
end
+array.new = new_array;
+
function array_mt.__add(a1, a2)
local res = new_array();
return res:append(a1):append(a2);