Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/range_reconcile/mod.ts>FingerprintTree#getFingerprint

Efficiently sync sets with range-based set reconciliation
Latest
method FingerprintTree.prototype.getFingerprint
Re-export
import { FingerprintTree } from "https://deno.land/x/range_reconcile@1.0.2/mod.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; }