RosettaCodeData/Task/Repeat/Stata/repeat.stata

10 lines
115 B
Plaintext

function repeat(f,n) {
for (i=1; i<=n; i++) (*f)()
}
function hello() {
printf("Hello\n")
}
repeat(&hello(),3)