API Reference
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
import { pairwise } from "@graphrefly/ts/operators";
Signature
function pairwise(): Operator<S, readonly [S, S]>
Returns
A Operator<S, readonly [S, S]> value.
Example
import { pairwise } from "@graphrefly/ts/operators";
Source
packages/ts/src/graph/operators.ts