rewrite, simply and "power-up" unification

This commit is contained in:
Joeri Exelmans 2025-05-19 13:18:58 +02:00
parent d3515d39a5
commit dfe03eab6e
4 changed files with 211 additions and 175 deletions

View file

@ -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)]);
}
}