RosettaCodeData/Task/Repeat-a-string/Julia/repeat-a-string.julia

5 lines
91 B
Plaintext

"ha"^5
'*'^5
#the (^) operator is really just call to the `repeat` function
repeat("ha",5)