Repeat a string: Difference between revisions

added single character repetition code
(added single character repetition code)
Line 1,134:
hahahahaha
</pre>
 
A string containing a repeated character is generated with:
<lang smalltalk>String new:n withAll:$*</lang>
 
=={{header|SNOBOL4}}==
Anonymous user