util/array.lua

changeset 3540
bc139431830b
parent 2923
b7049746bd29
equal deleted inserted replaced
3539:8bbd965267b2 3540:bc139431830b
4 -- 4 --
5 -- This project is MIT/X11 licensed. Please see the 5 -- This project is MIT/X11 licensed. Please see the
6 -- COPYING file in the source package for more information. 6 -- COPYING file in the source package for more information.
7 -- 7 --
8 8
9 local t_insert, t_sort, t_remove, t_concat 9 local t_insert, t_sort, t_remove, t_concat
10 = table.insert, table.sort, table.remove, table.concat; 10 = table.insert, table.sort, table.remove, table.concat;
11 11
12 local array = {}; 12 local array = {};
13 local array_base = {}; 13 local array_base = {};
14 local array_methods = {}; 14 local array_methods = {};
15 local array_mt = { __index = array_methods, __tostring = function (array) return array:concat(", "); end }; 15 local array_mt = { __index = array_methods, __tostring = function (array) return array:concat(", "); end };

mercurial