Diff

util/array.lua @ 13141:451cb119026e

Merge 0.12->trunk
author Kim Alvefur <zash@zash.se>
date Sat, 10 Jun 2023 13:06:05 +0200
parent 13032:ea4923bebca9
parent 13138:0b0cefce6e42
child 13245:ffe4adbd2af9
line wrap: on
line diff
--- a/util/array.lua	Sat Jun 10 12:18:09 2023 +0200
+++ b/util/array.lua	Sat Jun 10 13:06:05 2023 +0200
@@ -36,6 +36,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);