1
0
mirror of https://github.com/kepler155c/opus synced 2024-06-25 22:53:21 +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