Repeat a string: Difference between revisions

(Add lang example)
(add →‎Joy)
Line 1,329:
{{Out}}
<pre>hahahahaha</pre>
 
=={{header|Joy}}==
<syntaxhighlight lang="joy">DEFINE repeat == "" rotate [concat] cons times.
 
"ha" 5 repeat.</syntaxhighlight>
 
=={{header|jq}}==
<syntaxhighlight lang="jq">"a " * 3 # => "a a a "</syntaxhighlight>
 
Note that if the integer multiplicand is 0, then the result is the JSON value '''null'''.
 
559

edits