Software / code / prosody
Comparison
util/array.lua @ 3540:bc139431830b
Monster whitespace commit (beware the whitespace monster).
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Sat, 16 Oct 2010 23:00:42 +0500 |
| parent | 2923:b7049746bd29 |
| child | 4387:06161b0b83f2 |
comparison
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 }; |