RosettaCodeData/Task/Repeat-a-string/Smalltalk/repeat-a-string-2.st

2 lines
48 B
Smalltalk

((1 to: n) collect: [:x | 'ha']) joinUsing: ''.