Exemple #1
0
func New() *Imp {
	//
	x := new(Imp)
	d := day.New()
	x.file = pseq.New(d)
	x.dayset = set.New(d)
	return x
}
Exemple #2
0
func New(o Object, f ObjectFunc) *Imp {
	//
	x := new(Imp)
	x.object = o.Clone() // TODO type information behind o lost, e.g. Editor
	x.file = pseq.New(x.object)
	x.f, x.index = f, index.New(f(o))
	x.tree = set.New(x.index)
	x.posPool = qu.New(uint(0))
	return x
}