Jump to content

Repeat a string: Difference between revisions

added Ursala
(added Ursala)
Line 188:
=={{header|Tcl}}==
<lang tcl>string repeat "ha" 5 ;# => hahahahaha</lang>
 
=={{header|Ursala}}==
<lang Ursala>#import nat
 
repeat = ^|DlSL/~& iota
 
#cast %s
 
example = repeat('ha',5)</lang>
output:
<pre>'hahahahaha'</pre>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.