RosettaCodeData/Task/Repeat/Stata/repeat.stata
2023-07-01 13:44:08 -04:00

9 lines
115 B
Text

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