mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-29 10:43:43 +01:00
Fix modlib.table.process(tab, func)
This commit is contained in:
parent
8a6c22d107
commit
f64fa5bfb4
@ -193,9 +193,9 @@ function map_keys(table, func)
|
||||
return new_tab
|
||||
end
|
||||
|
||||
function process(table, func)
|
||||
function process(tab, func)
|
||||
local results = {}
|
||||
for key, value in pairs(table) do
|
||||
for key, value in pairs(tab) do
|
||||
table.insert(results, func(key,value))
|
||||
end
|
||||
return results
|
||||
|
Loading…
Reference in New Issue
Block a user