Exemple #1
0
func StringTree(ss []string) *Tree {
	t := radix.New()
	for _, s := range ss {
		t.Insert(s, nil)
	}
	return &Tree{t}
}
func NewCompressor() *Compressor {
	return &Compressor{0, radix.New(), make(map[int]string)}
}