Module:LoadDataTest2
Documentation for this module may be created at Module:LoadDataTest2/doc
p = {};
function traverse( T )
local a;
local cnt = 0;
for k, v in pairs(T) do
a = v;
if type(a) == 'table' then
cnt = cnt + traverse(a);
else
cnt = cnt + 1;
end
break;
end
return cnt
end
function p.test( frame )
local A = require( 'Module:Citation/CS1/Configuration' );
local clock1, clock2
--clock1 = os.clock();
local cnt = traverse(A);
--clock2 = os.clock();
return cnt .. " ";
end
return p;