Skip to content

Commit e9d55af

Browse files
committed
documentation
1 parent ad8e1f0 commit e9d55af

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

b+tree.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ export default class BTree<K = any, V = any> implements ISortedMapF<K, V>, ISort
338338
nextLowerPair(key: K | undefined): [K, V] | undefined;
339339
/** Returns the next key smaller than the specified key (or undefined if there is none) */
340340
nextLowerKey(key: K | undefined): K | undefined;
341+
/** Returns the key-value pair associated with the supplied key if it exists and the next lower pair otherwise (or undefined if there is none) */
341342
getOrNextLower(key: K): [K, V] | undefined;
342343
/** Edits the value associated with a key in the tree, if it already exists.
343344
* @returns true if the key existed, false if not.

b+tree.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,7 @@ var BTree = /** @class */ (function () {
852852
var p = this.nextLowerPair(key);
853853
return p ? p[0] : p;
854854
};
855+
/** Returns the key-value pair associated with the supplied key if it exists and the next lower pair otherwise (or undefined if there is none) */
855856
BTree.prototype.getOrNextLower = function (key) {
856857
return this._root.getOrNextLower(key, this, true);
857858
};

b+tree.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,7 @@ export default class BTree<K=any, V=any> implements ISortedMapF<K,V>, ISortedMap
960960
return p ? p[0] : p;
961961
}
962962

963+
/** Returns the key-value pair associated with the supplied key if it exists and the next lower pair otherwise (or undefined if there is none) */
963964
getOrNextLower(key: K): [K,V]|undefined {
964965
return this._root.getOrNextLower(key, this, true);
965966
}

0 commit comments

Comments
 (0)