1
0
Fork 0

Adding .bam/utils.lua

This commit is contained in:
Henrik Hautakoski 2020-12-28 18:58:40 +01:00
parent 36e4894dc7
commit bb28f5658f

10
.bam/utils.lua Normal file
View file

@ -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