Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Repeat/Objeck/repeat.objeck
Normal file
15
Task/Repeat/Objeck/repeat.objeck
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue