SortedTree - when node is removed, any remaining children (orphans) go to the nursery

This commit is contained in:
John Colvin committed 2018-10-28 15:57:08 -05:00
1 parent a3de2c1983
commit eedf19474e
1 file changed
+3
@@ -90,6 +90,9 @@ namespace bts.collections {
} else {
_remove_from_nursery(pk, node);
}
if (node.children.Count > 0) {
_nursery.Add(k, node.children);
}
}
public SortedTree<T, TKey> Resort(IComparer<T> comparer) {