From cbed7dfdf503b8d56de4ae5ed86e32bfc4e8e60e Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 10 Jun 2023 12:14:12 +0200 Subject: util.array: Expose new() on module table For consistency with other utils. Consistency is good. --- util/array.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util') 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); -- cgit v1.2.3