Sync
This commit is contained in:
@@ -66,6 +66,12 @@ function indices(t)
|
||||
return indices
|
||||
end
|
||||
|
||||
function map(t,func)
|
||||
for index,item in pairs(t) do
|
||||
t[index] = func(index,item)
|
||||
end
|
||||
end
|
||||
|
||||
-- Ensures a table has a metatable
|
||||
function ensure_metatable(t)
|
||||
local meta = getmetatable(t)
|
||||
|
||||
Reference in New Issue
Block a user