pairwise()
pairwise: emit [previous, current] for each consecutive pair; the very first value produces no
pair (quiet → undirty RESOLVED). Previous value is kept in ctx.state.
Import
Section titled “Import”import { pairwise } from "@graphrefly/ts/operators";Signature
Section titled “Signature”function pairwise(): Operator<S, readonly [S, S]>Returns
Section titled “Returns”A Operator<S, readonly [S, S]> value.
Example
Section titled “Example”import { pairwise } from "@graphrefly/ts/operators";Source
Section titled “Source”packages/ts/src/graph/operators.ts