15 lines
255 B
Text
15 lines
255 B
Text
class Repeat {
|
|
function : Main(args : String[]) ~ Nil {
|
|
Repeat(Example() ~ Nil, 3);
|
|
}
|
|
|
|
function : Repeat(e : () ~ Nil, i : Int) ~ Nil {
|
|
while(i-- > 0) {
|
|
e();
|
|
};
|
|
}
|
|
|
|
function : Example() ~ Nil {
|
|
"Example"->PrintLine();
|
|
}
|
|
}
|