{
  "id": "@typed/fx#RefIterable.reduce",
  "canonicalId": "@typed/fx/RefIterable#reduce",
  "symbol": {
    "id": "@typed/fx#RefIterable.reduce",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefIterable.reduce",
    "kind": "constant",
    "signatures": [
      "export declare const reduce: {\n    <A, B>(b: B, f: (b: B, a: A, index: number) => B): <E, R>(ref: RefIterable<A, E, R>) => RefSubject.Computed<B, E, R>;\n    <A, E, R, B>(ref: RefIterable<A, E, R>, b: B, f: (b: B, a: A, index: number) => B): RefSubject.Computed<B, E, R>;\n};"
    ],
    "summary": "Reduce the values of a RefIterable to a single value.",
    "sections": {
      "Why": "Makes reduce a live projection of the iterable; consumers can sample it now or observe it\nwithout copying the source state.",
      "Ownership and lifetime": "The reduce view retains no independent state. An Effect read samples the source once; Fx\nobservation follows later pushes and its observing Scope owns subscription cleanup."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefIterable.ts",
      "line": 592
    },
    "since": "1.18.0",
    "category": "Derived queries"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefIterable.reduce",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefIterable",
    "qualifiedName": "RefIterable.reduce",
    "declarationKey": "declaration:bec7313478c125c21a0fa5dd",
    "family": "variable",
    "signatures": [
      "export declare const reduce: {\n    <A, B>(b: B, f: (b: B, a: A, index: number) => B): <E, R>(ref: RefIterable<A, E, R>) => RefSubject.Computed<B, E, R>;\n    <A, E, R, B>(ref: RefIterable<A, E, R>, b: B, f: (b: B, a: A, index: number) => B): RefSubject.Computed<B, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefIterable.ts",
        "start": {
          "line": 592,
          "column": 14
        },
        "end": {
          "line": 609,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefIterable.ts",
        "start": {
          "line": 593,
          "column": 3
        },
        "end": {
          "line": 596,
          "column": 72
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefIterable.ts",
        "start": {
          "line": 597,
          "column": 3
        },
        "end": {
          "line": 601,
          "column": 35
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefIterable#reduce"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefIterable",
    "static": false,
    "importedFrom": "declaration:bec7313478c125c21a0fa5dd"
  },
  "declaration": {
    "declarationKey": "declaration:bec7313478c125c21a0fa5dd",
    "name": "reduce",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const reduce: {\n    <A, B>(b: B, f: (b: B, a: A, index: number) => B): <E, R>(ref: RefIterable<A, E, R>) => RefSubject.Computed<B, E, R>;\n    <A, E, R, B>(ref: RefIterable<A, E, R>, b: B, f: (b: B, a: A, index: number) => B): RefSubject.Computed<B, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefIterable.ts",
            "start": {
              "line": 592,
              "column": 14
            },
            "end": {
              "line": 609,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<A, B>(b: B, f: (b: B, a: A, index: number) => B): <E, R>(ref: RefIterable<A, E, R>) => RefSubject.Computed<B, E, R>;",
          "<A, E, R, B>(ref: RefIterable<A, E, R>, b: B, f: (b: B, a: A, index: number) => B): RefSubject.Computed<B, E, R>;"
        ],
        "typeParameters": [
          "A",
          "B",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefIterable.ts",
            "start": {
              "line": 593,
              "column": 3
            },
            "end": {
              "line": 596,
              "column": 72
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefIterable.ts",
            "start": {
              "line": 597,
              "column": 3
            },
            "end": {
              "line": 601,
              "column": 35
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const reduce: {\n    <A, B>(b: B, f: (b: B, a: A, index: number) => B): <E, R>(ref: RefIterable<A, E, R>) => RefSubject.Computed<B, E, R>;\n    <A, E, R, B>(ref: RefIterable<A, E, R>, b: B, f: (b: B, a: A, index: number) => B): RefSubject.Computed<B, E, R>;\n};"
    ],
    "typeParameters": [
      "A",
      "B",
      "E",
      "R"
    ],
    "summary": "Reduce the values of a RefIterable to a single value.",
    "sections": {
      "Why": "Makes reduce a live projection of the iterable; consumers can sample it now or observe it\nwithout copying the source state.",
      "Ownership and lifetime": "The reduce view retains no independent state. An Effect read samples the source once; Fx\nobservation follows later pushes and its observing Scope owns subscription cleanup."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefIterable.ts",
        "start": {
          "line": 592,
          "column": 14
        },
        "end": {
          "line": 609,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefIterable.ts",
        "start": {
          "line": 593,
          "column": 3
        },
        "end": {
          "line": 596,
          "column": 72
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefIterable.ts",
        "start": {
          "line": 597,
          "column": 3
        },
        "end": {
          "line": 601,
          "column": 35
        }
      }
    ],
    "since": "1.18.0",
    "category": "Derived queries"
  }
}
