Repeat a string: Difference between revisions

Content added Content deleted
Line 1,011: Line 1,011:


=={{header|Julia}}==
=={{header|Julia}}==
{{works with|Julia|0.6}}
<lang julia>"ha"^5

'*'^5
<lang julia>@show "ha" ^ 5
#the (^) operator is really just call to the `repeat` function

repeat("ha",5)</lang>
# The ^ operator is really just call to the `repeat` function
@show repeat("ha", 5)</lang>


=={{header|K}}==
=={{header|K}}==