Adding .bam/utils.lua
This commit is contained in:
parent
36e4894dc7
commit
bb28f5658f
1 changed files with 10 additions and 0 deletions
10
.bam/utils.lua
Normal file
10
.bam/utils.lua
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue