find improvement

This commit is contained in:
Manuel Simon Hirsig
2016-03-22 16:57:43 +01:00
parent 345a07dae6
commit 8fdab2ed13
4 changed files with 68 additions and 50 deletions
+9
View File
@@ -8,6 +8,15 @@ function public.id(object)
return object
end
function public.table_eq(t1, t2)
for key, value in t1 do
if t2[key] ~= value then
return false
end
end
return true
end
function public.wipe(table)
while getn(table) > 0 do
tremove(table)