1
0
mirror of https://github.com/kepler155c/opus synced 2024-09-28 23:10:41 +00:00
opus/sys/apis/array.lua

14 lines
167 B
Lua
Raw Normal View History

2019-03-19 05:42:42 +00:00
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