Commit 0a01507e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent e46dfe8a
......@@ -1021,3 +1021,16 @@ func xkvFlatten(xkv RBucketSet) map[Key]string {
}
return kv
}
func (ks SetKey) String() string {
keyv := ks.Elements()
sort.Slice(keyv, func(i, j int) bool {
return keyv[i] < keyv[j]
})
strv := []string{}
for _, k := range keyv {
strv = append(strv, fmt.Sprintf("%d", k))
}
return "{" + strings.Join(strv, ", ") + "}"
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment