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.




def myFunc
    "Sure looks like a function in here..." print nl
enddef
 
def rep /# func times -- #/
    for drop
	dup exec
    endfor
    drop
enddef
 
getid myFunc 4 rep
 