{
  "id": "@typed/fx/Fx#zipWith",
  "canonicalId": "@typed/fx/Fx#zipWith",
  "symbol": {
    "id": "@typed/fx/Fx#zipWith",
    "packageName": "@typed/fx",
    "moduleName": "Fx",
    "exportName": "zipWith",
    "kind": "constant",
    "signatures": [
      "export declare const zipWith: {\n    <A, A2, E2, R2, B>(that: Fx<A2, E2, R2>, f: (a: A, b: A2) => B): <E, R>(self: Fx<A, E, R>) => Fx<B, E | E2, R | R2>;\n    <A, E, R, A2, E2, R2, B>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>, f: (a: A, b: A2) => B): Fx<B, E | E2, R | R2>;\n};"
    ],
    "summary": "Zips two Fx streams in strict lockstep and combines each pair with a function.\nEmits `f(a, b)` when both streams have produced their next value.\n\n**Completion:** Completes when the **first** of the two streams completes.\n**Errors:** The first failure from either stream fails the result.",
    "sections": {
      "Why": "`zipWith` combines each strict pair immediately, preserving `zip`'s lockstep cardinality and\nordering while avoiding a separate tuple mapping step.",
      "Ownership and lifetime": "It inherits `zip`'s two child runs and unbounded unmatched-value queues. The pure combiner adds no\nresource, error, or service requirement."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\nconst sums = Fx.zipWith(Fx.fromIterable([1]), Fx.fromIterable([2]), (a, b) => a + b)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/combinators/zip.ts",
      "line": 125
    },
    "since": "1.0.0",
    "category": "Combining sources"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/Fx#zipWith",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": "Fx",
    "consumerSpecifier": "@typed/fx/Fx",
    "exportName": "zipWith",
    "qualifiedName": "zipWith",
    "declarationKey": "declaration:6339298c81e40cc3ff527c15",
    "family": "variable",
    "signatures": [
      "export declare const zipWith: {\n    <A, A2, E2, R2, B>(that: Fx<A2, E2, R2>, f: (a: A, b: A2) => B): <E, R>(self: Fx<A, E, R>) => Fx<B, E | E2, R | R2>;\n    <A, E, R, A2, E2, R2, B>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>, f: (a: A, b: A2) => B): Fx<B, E | E2, R | R2>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/zip.ts",
        "start": {
          "line": 125,
          "column": 14
        },
        "end": {
          "line": 142,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/zip.ts",
        "start": {
          "line": 126,
          "column": 3
        },
        "end": {
          "line": 129,
          "column": 57
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/zip.ts",
        "start": {
          "line": 130,
          "column": 3
        },
        "end": {
          "line": 134,
          "column": 28
        }
      }
    ],
    "aliases": [
      "@typed/fx#Fx.zipWith"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:6339298c81e40cc3ff527c15",
    "name": "zipWith",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const zipWith: {\n    <A, A2, E2, R2, B>(that: Fx<A2, E2, R2>, f: (a: A, b: A2) => B): <E, R>(self: Fx<A, E, R>) => Fx<B, E | E2, R | R2>;\n    <A, E, R, A2, E2, R2, B>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>, f: (a: A, b: A2) => B): Fx<B, E | E2, R | R2>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/zip.ts",
            "start": {
              "line": 125,
              "column": 14
            },
            "end": {
              "line": 142,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<A, A2, E2, R2, B>(that: Fx<A2, E2, R2>, f: (a: A, b: A2) => B): <E, R>(self: Fx<A, E, R>) => Fx<B, E | E2, R | R2>;",
          "<A, E, R, A2, E2, R2, B>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>, f: (a: A, b: A2) => B): Fx<B, E | E2, R | R2>;"
        ],
        "typeParameters": [
          "A",
          "A2",
          "E2",
          "R2",
          "B",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/zip.ts",
            "start": {
              "line": 126,
              "column": 3
            },
            "end": {
              "line": 129,
              "column": 57
            }
          },
          {
            "file": "packages/fx/src/Fx/combinators/zip.ts",
            "start": {
              "line": 130,
              "column": 3
            },
            "end": {
              "line": 134,
              "column": 28
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const zipWith: {\n    <A, A2, E2, R2, B>(that: Fx<A2, E2, R2>, f: (a: A, b: A2) => B): <E, R>(self: Fx<A, E, R>) => Fx<B, E | E2, R | R2>;\n    <A, E, R, A2, E2, R2, B>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>, f: (a: A, b: A2) => B): Fx<B, E | E2, R | R2>;\n};"
    ],
    "typeParameters": [
      "A",
      "A2",
      "E2",
      "R2",
      "B",
      "E",
      "R"
    ],
    "summary": "Zips two Fx streams in strict lockstep and combines each pair with a function.\nEmits `f(a, b)` when both streams have produced their next value.\n\n**Completion:** Completes when the **first** of the two streams completes.\n**Errors:** The first failure from either stream fails the result.",
    "sections": {
      "Why": "`zipWith` combines each strict pair immediately, preserving `zip`'s lockstep cardinality and\nordering while avoiding a separate tuple mapping step.",
      "Ownership and lifetime": "It inherits `zip`'s two child runs and unbounded unmatched-value queues. The pure combiner adds no\nresource, error, or service requirement."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\nconst sums = Fx.zipWith(Fx.fromIterable([1]), Fx.fromIterable([2]), (a, b) => a + b)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/zip.ts",
        "start": {
          "line": 125,
          "column": 14
        },
        "end": {
          "line": 142,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/zip.ts",
        "start": {
          "line": 126,
          "column": 3
        },
        "end": {
          "line": 129,
          "column": 57
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/zip.ts",
        "start": {
          "line": 130,
          "column": 3
        },
        "end": {
          "line": 134,
          "column": 28
        }
      }
    ],
    "since": "1.0.0",
    "category": "Combining sources"
  }
}
