RosettaCodeData/Task/Repeat-a-string/J/repeat-a-string.j

9 lines
271 B
Plaintext

5 # '*' NB. repeat each item 5 times
*****
5 # 'ha' NB. repeat each item 5 times
hhhhhaaaaa
5 ((* #) $ ]) 'ha' NB. repeat array 5 times
hahahahaha
5 ;@# < 'ha' NB. boxing is used to treat the array as a whole
hahahahaha