diff --git a/.bam/utils.lua b/.bam/utils.lua new file mode 100644 index 0000000..ff4957f --- /dev/null +++ b/.bam/utils.lua @@ -0,0 +1,10 @@ + +-- Returns True if 'table' contains the value 'val'. False otherwise. +function contains(table, val) + for i=1, #table do + if table[i] == val then + return true + end + end + return false +end