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