Split a character string based on change of character: Difference between revisions
Content added Content deleted
(→BQN: add) |
|||
Line 757: | Line 757: | ||
{{out}} |
{{out}} |
||
<pre>g, HHH, 5, YY, ++, ///, \</pre> |
<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}}== |
=={{header|C}}== |