def repeat(f,n) for i in range(1, n) f() end end def procedure() println "Example" end repeat(procedure, 3)