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