1
0
mirror of https://github.com/kepler155c/opus synced 2024-11-15 05:04:50 +00:00
opus/sys/apis/array.lua
kepler155c@gmail.com cd6ed79d11 array api
2019-03-19 01:42:42 -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