Fix. add functions/count.lua to preview commit.

This commit is contained in:
Alexey Melnichuk 2015-08-10 13:01:49 +04:00
parent a8142f527a
commit c27e9cef9a
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
--array count
function count(t)
local c = 0;
for k in pairs(t) do
c = c + 1;
end
return c;
end