big refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-21 14:29:01 +02:00
parent 2b9a63fe8c
commit 590347a1e5
23 changed files with 236 additions and 263 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
aux.module 'util'
local temp, recycle, getn = g.temp, g.recycle, g.getn
local temp, recycle, getn = temp, recycle, _g.getn
function public.copy(t)
local copy = {}
@@ -9,7 +9,7 @@ function public.copy(t)
return copy
end
public.join = g.table.concat
public.join = _g.table.concat
function public.replicate(count, value)
if count > 0 then return value, replicate(count - 1, value) end