# HG changeset patch # User Kim Alvefur # Date 1686392052 -7200 # Node ID 0b0cefce6e4207f30d116fad30ad3ff90ca22467 # Parent 332e95f75dbb91b5a15e988e0486015bf39a955b util.array: Expose new() on module table For consistency with other utils. Consistency is good. diff -r 332e95f75dbb -r 0b0cefce6e42 util/array.lua --- a/util/array.lua Wed May 31 14:08:19 2023 +0200 +++ b/util/array.lua Sat Jun 10 12:14:12 2023 +0200 @@ -35,6 +35,8 @@ 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);