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.




sayHi = function()
    print "Hi!"
end function
 
rep = function(f, n)
    for i in range(1, n)
        f
    end for
end function
 
rep @sayHi, 3