It's not a good idea to do that for many results (like 100k-200k+), since you will most likely run out of memory, but you can test how it goes in your case. Here is a function to concatenate results from table of tables with results:
function concatResults(resultsList)
local mergedResults = {}
local index = 0
for _, results in ipairs(resultsList) do
for __, result in ipairs(results) do
index = index + 1
mergedResults[index] = result
end
end
return mergedResults
end
And example of it's usage:
local resultsList = {}
for i = 7, 700, 7 do
gg.clearResults()
gg.searchNumber(tostring(i), gg.TYPE_DOUBLE)
resultsList[#resultsList + 1] = gg.getResults(gg.getResultsCount())
end
local allResults = concatResults(resultsList)