Anonymous user
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>
|