diff --git a/Algorithms.lua b/Algorithms.lua index 51e2171..edfc93e 100644 --- a/Algorithms.lua +++ b/Algorithms.lua @@ -333,3 +333,12 @@ function getPermutations(master, num) --Return the list return perms; end + +function isFound(ary, key) + for cnt = 1, #ary do + if(ary[ary] == key) then + return true; + end + end + return false; +end