Add class Technology

This commit is contained in:
Simon Brodtmann 2025-01-07 23:06:31 +01:00
parent 8c1a940f0a
commit e56b1a2639
2 changed files with 167 additions and 1 deletions

View file

@ -60,7 +60,11 @@ function table.filter(target, predicate)
local result = {}
for k, v in pairs(target) do
if predicate(v, k) then
result[k] = v
if type(k) == "number" then
table.insert(result, v)
else
result[k] = v
end
end
end
return result