upload to git
This commit is contained in:
18
search_list.lua
Normal file
18
search_list.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
return function(query)
|
||||
results_table = {}
|
||||
for i=1, #words do
|
||||
local exit = true
|
||||
for j=1, #words[i]-1 do
|
||||
if string.find(words[i][j], query) then
|
||||
exit = false
|
||||
break
|
||||
end
|
||||
end
|
||||
if not exit then
|
||||
local word = {i,words[i]}
|
||||
table.insert(results_table,word)
|
||||
end
|
||||
end
|
||||
results_table = adjustTableSizes(results_table)
|
||||
printOutputTable(results_table)
|
||||
end
|
||||
Reference in New Issue
Block a user