Files
eepp/docs/doxyrest/frame/common/table.lua
Martín Lucas Golini bec45f8b4b Added doxyrest support.
Cleaned up several documentation related stuffs.

--HG--
branch : dev
2020-01-03 03:42:14 -03:00

39 lines
879 B
Lua

--------------------------------------------------------------------------------
--
-- This file is part of the Doxyrest toolkit.
--
-- Doxyrest is distributed under the MIT license.
-- For details see accompanying license.txt file,
-- the public copy of which is also available at:
-- http://tibbo.com/downloads/archive/doxyrest/license.txt
--
--------------------------------------------------------------------------------
function printTable(t)
for key, value in pairs(t) do
print(key, " -> ", value)
end
end
function concatenateTables(t1, t2)
local j = #t1 + 1
for i = 1, #t2 do
t1 [j] = t2 [i]
j = j + 1
end
end
function filterArray(a, filter)
if next(a) == nil then
return
end
for i = #a, 1, -1 do
if not filter(a[i]) then
table.remove(a, i)
end
end
end
--------------------------------------------------------------------------------