Repeat a string: Difference between revisions

Smalltalk version
(→‎{{header|REXX}}: indented the separater comments to not interfere with reading of the source code, added ''big sky'' comment. -- ~~~~)
(Smalltalk version)
Line 1,066:
writeln("ha" mult 5);
end func;</lang>
 
Output:
<pre>
hahahahaha
</pre>
 
=={{header|Smalltalk}}==
 
{{works with|Pharo|1.4}}
 
<lang smalltalk>((1 to: 5) collect: [:x | 'ha']) joinUsing: ''.</lang>
 
Output:
Anonymous user