aboutsummaryrefslogtreecommitdiff
path: root/utils.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-09-25 17:02:00 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-09-25 17:02:00 -0700
commit02def0af9226d7b0b86195093a87ef251934c797 (patch)
tree2abcb05299750fada187c1f2456f5a2b2bce43a4 /utils.moon
parent8afab37c90416c5a6a6853df2e6976f26599f5c3 (diff)
lib/metaprogramming.nom is working!
Diffstat (limited to 'utils.moon')
-rw-r--r--utils.moon1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils.moon b/utils.moon
index 471b28e..87cd5a3 100644
--- a/utils.moon
+++ b/utils.moon
@@ -1,6 +1,7 @@
local utils
utils = {
is_list: (t)->
+ if type(t) != 'table' then return false
i = 1
for _ in pairs(t)
if t[i] == nil then return false