From c27e9cef9a39d2334a912940cac2f8a13ba5c745 Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Mon, 10 Aug 2015 13:01:49 +0400 Subject: [PATCH] Fix. add functions/count.lua to preview commit. --- resources/install/scripts/resources/functions/count.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 resources/install/scripts/resources/functions/count.lua diff --git a/resources/install/scripts/resources/functions/count.lua b/resources/install/scripts/resources/functions/count.lua new file mode 100644 index 0000000000..4a98776979 --- /dev/null +++ b/resources/install/scripts/resources/functions/count.lua @@ -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 \ No newline at end of file