Split a character string based on change of character: Difference between revisions
Split a character string based on change of character (view source)
Revision as of 21:29, 2 December 2023
, 6 months ago→BQN: add
(→BQN: add) |
|||
Line 757:
{{out}}
<pre>g, HHH, 5, YY, ++, ///, \</pre>
=={{header|BQN}}==
<syntaxhighlight lang="bqn">Split ← (¯1+`∊)⊸⊔
Join ← {∾⟜𝕨⊸∾´𝕩}
", " Join⟜Split "gHHH5YY++///\"</syntaxhighlight>
{{out}}
<pre>"g, HHH, 5, YY, ++, ///, \"</pre>
=={{header|C}}==
|