bplustree-mq4uj
Advanced tools
Comparing version 0.0.1 to 0.0.2
import type { ISortedMap, ISortedMapF, ISortedSet } from './interfaces.js'; | ||
export type { ISetSource, ISetSink, ISet, ISetF, ISortedSetSource, ISortedSet, ISortedSetF, IMapSource, IMapSink, IMap, IMapF, ISortedMapSource, ISortedMap, ISortedMapF } from './interfaces.js'; | ||
export type { ISetSource, ISetSink, ISet, ISetF, ISortedSetSource, ISortedSet, ISortedSetF, IMapSource, IMapSink, IMap, IMapF, ISortedMapSource, ISortedMap, ISortedMapF, } from './interfaces.js'; | ||
export type EditRangeResult<V, R = number> = { | ||
@@ -106,3 +106,3 @@ value?: V; | ||
*/ | ||
export default class BTree<K = any, V = any> implements ISortedMapF<K, V>, ISortedMap<K, V> { | ||
export declare class BTree<K = any, V = any> implements ISortedMapF<K, V>, ISortedMap<K, V> { | ||
private _root; | ||
@@ -201,3 +201,3 @@ _size: number; | ||
* ultimately unchanged. | ||
*/ | ||
*/ | ||
withKeys(keys: K[], returnThisIfUnchanged?: boolean): BTree<K, V | undefined>; | ||
@@ -329,3 +329,3 @@ /** Returns a copy of the tree with the specified key removed. | ||
* @returns true if a new key was added | ||
*/ | ||
*/ | ||
setIfNotPresent(key: K, value: V): boolean; | ||
@@ -372,3 +372,3 @@ /** Returns the next pair whose key is larger than the specified key (or undefined if there is none). | ||
* @returns true if the key existed, false if not. | ||
*/ | ||
*/ | ||
changeIfPresent(key: K, value: V): boolean; | ||
@@ -375,0 +375,0 @@ /** |
{ | ||
"name": "bplustree-mq4uj", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "TypeScript ECMAScript Module Library Template", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is too big to display
109328
2153