Add class Technology
This commit is contained in:
parent
8c1a940f0a
commit
e56b1a2639
2 changed files with 167 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue