mirror of
https://github.com/kepler155c/opus
synced 2024-11-16 13:44:49 +00:00
14 lines
167 B
Lua
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
|