Task

Write a procedure which accepts as arguments another procedure and a positive integer.

The latter procedure is executed a number of times equal to the accepted integer.




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)
 