rewrite, simply and "power-up" unification
This commit is contained in:
parent
d3515d39a5
commit
dfe03eab6e
4 changed files with 211 additions and 175 deletions
|
|
@ -18,4 +18,14 @@ export class RBTreeWrapper {
|
|||
static new(compareFn) {
|
||||
return new RBTreeWrapper(createRBTree(compareFn))
|
||||
}
|
||||
|
||||
// only for debugging:
|
||||
keys() {
|
||||
return this.tree.keys;
|
||||
}
|
||||
|
||||
// only for debugging:
|
||||
entries() {
|
||||
return this.tree.keys.map(key => [key, this.tree.get(key)]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue