RosettaCodeData/Task/Repeat/Lua/repeat.lua
2023-07-01 13:44:08 -04:00

11 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)