RosettaCodeData/Task/Repeat-a-string/PARI-GP/repeat-a-string-2.pari

2 lines
36 B
Plaintext

repeat(s,n)=concat(vector(n,i, s));