Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/range_reconcile/src/fingerprint_tree/fingerprint_tree.ts>FingerprintTree#getFingerprint

Efficiently sync sets with range-based set reconciliation
Go to Latest
method FingerprintTree.prototype.getFingerprint
import { FingerprintTree } from "https://deno.land/x/range_reconcile@0.1.0/src/fingerprint_tree/fingerprint_tree.ts";

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,

Parameters

x: ValueType
y: ValueType
optional
nextTree: NodeType<ValueType, LiftedType>

Returns

{ fingerprint: LiftedType; size: number; items: ValueType[]; nextTree: NodeType<ValueType, LiftedType> | null; }