Repeat a string: Difference between revisions

Content added Content deleted
(added Ursala)
Line 188: Line 188:
=={{header|Tcl}}==
=={{header|Tcl}}==
<lang tcl>string repeat "ha" 5 ;# => hahahahaha</lang>
<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>