Repeat a string: Difference between revisions
Content added Content deleted
(→{{header|REXX}}: indented the separater comments to not interfere with reading of the source code, added ''big sky'' comment. -- ~~~~) |
(Smalltalk version) |
||
Line 1,066: | Line 1,066: | ||
writeln("ha" mult 5); |
writeln("ha" mult 5); |
||
end func;</lang> |
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: |
Output: |