RosettaCodeData/Task/Repeat/Lua/repeat.lua

12 lines
173 B
Lua

function myFunc ()
print("Sure looks like a function in here...")
end
function rep (func, times)
for count = 1, times do
func()
end
end
rep(myFunc, 4)