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 16:54, 13 June 2018
, 6 years ago→{{header|Go}}: User new and more efficient strings.Builder
m (→{{header|Go}}: User new and more efficient strings.Builder) |
|||
Line 575:
import (
"bytes"▼
"fmt"
)
Line 587:
return s
}
var b
p := s[0]
b.WriteByte(p)
|