Split a character string based on change of character: Difference between revisions
Content added Content deleted
m (→JS ES6) |
|||
Line 1,043:
=={{header|Dyalect}}==
<lang dyalect>func String.
var c
var str = ""
var last = this.
for n in 0..last {
if c && this[n] != c {
Line 1,055:
str += c
}
str
}
print("gHHH5YY++///\\".
{{out}}
|