Anonymous user
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 19:42, 8 March 2022
, 2 years ago→{{header|Dyalect}}
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}}
|