2,875
edits
No edit summary |
No edit summary |
||
Line 254: | Line 254: | ||
assert(predicate) | assert(predicate) | ||
local result = {} | local result = {} | ||
for k, v in pairs( | for k, v in pairs(self.mytable) do | ||
if predicate(v) then | if predicate(v) then | ||
result[k] = v | result[k] = v |
edits