1
0
mirror of https://github.com/kepler155c/opus synced 2024-06-14 01:16:52 +00:00
opus/sys/modules/opus/array.lua
2019-06-28 13:50:02 -04:00

14 lines
167 B
Lua

local Array = { }
function Array.filter(it, f)
local ot = { }
for _,v in pairs(it) do
if f(v) then
table.insert(ot, v)
end
end
return ot
end
return Array