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 sayHi()
	println("Hi")
end
 
function rep(f, n)
	for i = 1:n f() end
end
 
rep(sayHi, 3)