Jump to content

Repeat a string: Difference between revisions

add BQN
(add BQN)
Line 421:
Output sample:
<pre>hahahahaha</pre>
 
=={{header|BQN}}==
 
<code>⥊</code>(reshape) can all by itself be used to repeat a string to a particular length. This function is just a wrapper around it to repeat n times.
 
<lang bqn>Repeat ← ×⟜≠ ⥊ ⊢
 
•Show 5 Repeat "Hello"</lang><lang>"HelloHelloHelloHelloHello"</lang>
 
=={{header|Bracmat}}==
236

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.