This commit is contained in:
2026-03-29 11:46:50 +01:00
parent e6f3b5c77f
commit 7aa282b405
8 changed files with 175 additions and 102 deletions

View File

@@ -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)