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.




Red[]
 
myrepeat: function [fn n] [loop n [do fn]]
 
myrepeat [print "hello"] 3