RosettaCodeData/Task/Repeat-a-string/PL-I/repeat-a-string.pli

6 lines
124 B
Plaintext

s = copy('ha', 5);
/* To repeat a single character a fixed number of times: */
s = (5)'h'; /* asigns 'hhhhh' to s. */