prollipop
    Preparing search index...

    Function merge

    • Merge a source prolly-tree into target. If a key does not exist in target then it is added from source into target. If both trees have an entry at the same key and a choose function was provided, then the entry from the source tree may also be added to target.

      Parameters

      • blockstore: Blockfetcher

        target blockstore

      • target: ProllyTree

        Prolly-tree to merge source into

      • source: ProllyTree

        Prolly-tree to merge into target

      • OptionalremoteBlockstore: Blockfetcher

        source blockstore

      • Optionalchoose: (a: Entry, b: Entry) => Entry

        Chooses between two entries. Must return one of the provided entry instances.

      Returns AsyncIterable<ProllyTreeDiff>