-func (me PieceStateRuns) String() string {
- ss := make([]string, 0, len(me))
- for _, psr := range me {
- ss = append(ss, psr.String())
+func (me PieceStateRuns) String() (s string) {
+ if len(me) > 0 {
+ var sb strings.Builder
+ sb.WriteString(me[0].String())
+ for i := 1; i < len(me); i += 1 {
+ sb.WriteByte(' ')
+ sb.WriteString(me[i].String())
+ }
+ return sb.String()