Fix modlib.table.process(tab, func)

This commit is contained in:
Lars Mueller 2020-12-19 11:40:52 +01:00
parent 8a6c22d107
commit f64fa5bfb4

@ -193,9 +193,9 @@ function map_keys(table, func)
return new_tab return new_tab
end end
function process(table, func) function process(tab, func)
local results = {} local results = {}
for key, value in pairs(table) do for key, value in pairs(tab) do
table.insert(results, func(key,value)) table.insert(results, func(key,value))
end end
return results return results