{
  "id": "@typed/fx/Fx#pairwise",
  "canonicalId": "@typed/fx/Fx#pairwise",
  "symbol": {
    "id": "@typed/fx/Fx#pairwise",
    "packageName": "@typed/fx",
    "moduleName": "Fx",
    "exportName": "pairwise",
    "kind": "constant",
    "signatures": [
      "export declare const pairwise: <A, E = never, R = never>(self: Fx<A, E, R>) => Fx<readonly [\n    A,\n    A\n], E, R>;"
    ],
    "summary": "Emits consecutive pairs `[previous, current]`. The first value is not emitted\nuntil a second value arrives.\n\nEquivalent to RxJS `pairwise` and Effect `Stream.sliding(2)` for pairs.",
    "sections": {
      "Why": "`pairwise` exposes transitions rather than isolated values. For `n` inputs it emits `max(0,\nn - 1)` adjacent pairs in source order, retaining only the immediately preceding value.",
      "Ownership and lifetime": "The previous-value cell belongs to one run of the returned Fx and is discarded when that run\ncompletes or is interrupted. Source errors and services are unchanged."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\n\nconst changes = Fx.fromIterable([10, 13, 12]).pipe(Fx.pairwise)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/combinators/pairwise.ts",
      "line": 30
    },
    "since": "1.0.0",
    "category": "Stateful transforms"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/Fx#pairwise",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": "Fx",
    "consumerSpecifier": "@typed/fx/Fx",
    "exportName": "pairwise",
    "qualifiedName": "pairwise",
    "declarationKey": "declaration:332f850a358e34f891e41d63",
    "family": "variable",
    "signatures": [
      "export declare const pairwise: <A, E = never, R = never>(self: Fx<A, E, R>) => Fx<readonly [\n    A,\n    A\n], E, R>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/pairwise.ts",
        "start": {
          "line": 30,
          "column": 14
        },
        "end": {
          "line": 36,
          "column": 4
        }
      }
    ],
    "aliases": [
      "@typed/fx#Fx.pairwise"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:332f850a358e34f891e41d63",
    "name": "pairwise",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const pairwise: <A, E = never, R = never>(self: Fx<A, E, R>) => Fx<readonly [\n    A,\n    A\n], E, R>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/pairwise.ts",
            "start": {
              "line": 30,
              "column": 14
            },
            "end": {
              "line": 36,
              "column": 4
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const pairwise: <A, E = never, R = never>(self: Fx<A, E, R>) => Fx<readonly [\n    A,\n    A\n], E, R>;"
    ],
    "typeParameters": [],
    "summary": "Emits consecutive pairs `[previous, current]`. The first value is not emitted\nuntil a second value arrives.\n\nEquivalent to RxJS `pairwise` and Effect `Stream.sliding(2)` for pairs.",
    "sections": {
      "Why": "`pairwise` exposes transitions rather than isolated values. For `n` inputs it emits `max(0,\nn - 1)` adjacent pairs in source order, retaining only the immediately preceding value.",
      "Ownership and lifetime": "The previous-value cell belongs to one run of the returned Fx and is discarded when that run\ncompletes or is interrupted. Source errors and services are unchanged."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\n\nconst changes = Fx.fromIterable([10, 13, 12]).pipe(Fx.pairwise)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/pairwise.ts",
        "start": {
          "line": 30,
          "column": 14
        },
        "end": {
          "line": 36,
          "column": 4
        }
      }
    ],
    "since": "1.0.0",
    "category": "Stateful transforms"
  }
}
