RosettaCodeData/Task/Rep-string/J/rep-string-3.j

2 lines
49 B
Plaintext

nRepStr=: 0 -.~ (([ * ] -: rep)"0 1~ replengths)