public void Clear() { _nodes = new EditableLookup <T, AvlTreeNode <T> >(); _tree = new OrderedAvlTree <T>(); }
public AvlList() { _tree = new OrderedAvlTree <T>(); _nodes = new EditableLookup <T, AvlTreeNode <T> >(); }
public void Reset(IEnumerable <T> items) { _tree = new OrderedAvlTree <T>(items); _nodes = _tree.ToEditableLookup(node => node.Item); }