Jump to content

Repeat a string: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
Line 377:
F I=1:1:N W S
Q
</lang>
 
=={{header|Objeck}}==
<lang objeck>
bundle Default {
class Repeat {
function : Main(args : String[]) ~ Nil {
Repeat("ha", 5)->PrintLine();
}
function : Repeat(string : String, max : Int) ~ String {
repeat : String := String->New();
for(i := 0; i < max; i += 1;) {
repeat->Append(string);
};
return repeat;
}
}
}
</lang>
 
760

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.