Repeat a string: Difference between revisions

→‎{{header|PL/I}}: Add repeat function
m (→‎{{header|Visual Basic}}: Suppress space)
(→‎{{header|PL/I}}: Add repeat function)
Line 1,543:
 
=={{header|PL/I}}==
<lang PL/I>s = copy('ha', 5);
/* To repeat a string a fixed number of times: */
 
s = repeat('ha', 4);
 
/* or */
 
s = copy('ha', 5);
 
/* To repeat a single character a fixed number of times: */
1,392

edits