import { FingerprintTree } from "https://deno.land/x/range_reconcile@1.0.2/mod.ts";
A self-balancing tree which can return fingerprints for ranges of items it holds using a provided monoid.
Constructors
Properties
Methods
Find the first node holding a value greater than or equal to the given value.
Calculates a fingerprint of items within the given range, inclusive of xx and exclusive of y. Also returns the size of the range, the items contained within it,
Return the lowest value within this tree. Useful for constructing the maximum range of the tree, which will be [x, x) where x is the result of this function.
Insert a value into the tree. Will create a lifted value for the resulting node, and update the labels of all rotated and parent nodes in the tree.
Remove a value frem the tree. Will recalculate labels for all rotated and parent nodes.