@sovereignbase/sequencer
    Preparing search index...

    Function replace

    • Replaces visible Frames starting at one Projection index.

      Removes the visible span covered by values.length and inserts values at the original index. The transferable Deltas from both operations are combined lane by lane into one [projection, footage] tuple.

      hard controls whether the replaced Footage is released while deleting the existing Frames.

      Type Parameters

      • T

        Consumer-owned value represented by one Frame.

      Parameters

      • state: Replica<T>

        Replica to modify.

      • index: number

        Zero-based visible index at which replacement begins.

      • values: T[]

        Contiguous values replacing the existing visible Frames.

      • hard: boolean = false

        Whether replaced Footage should be released.

      Returns false | Delta<T>

      The combined transferable Delta, or false for empty or invalid values or when the deletion cannot be performed. If insertion is rejected after deletion, returns the deletion Delta.

      Replacement is intentionally a composition of the public Mask and insertion paths; it introduces no separate native operation.