Jump to content

Repeat a string: Difference between revisions

no edit summary
(added single character repetition code)
No edit summary
Line 1,170:
$$ MODE TUSCRIPT
repeatstring=REPEAT ("ha",5)
</lang>
 
=={{header|Torquescript}}==
<lang Torquescript>
function strRep(%str,%int)
{
for(%i = 0; %i < %int; %i++)
{
%rstr = %rstr@%str;
}
 
return %rstr;
}
</lang>
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.