Сколько вы можете придумать способов напечатать фразу "Hello World!" десять раз, при помощи Луа?
Мой вклад в копилку:
1) Рекурсией
function hello(times)
if times > 0 then print "Hello World!"; hello(times-1) end
end
hello(10)
2) Заменой
local source = " "
local hello = source:gsub(" ", "Hello World!\n")
print(hello)