local funs = {} for index = 1, 368 do funs[index] = function() print(index) end end funs[8]()