{
  "id": "@typed/fx#RefChunk.reduce",
  "canonicalId": "@typed/fx/RefChunk#reduce",
  "symbol": {
    "id": "@typed/fx#RefChunk.reduce",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefChunk.reduce",
    "kind": "constant",
    "signatures": [
      "export declare const reduce: {\n    <A, B>(b: B, f: (b: B, a: A, index: number) => B): <E, R>(ref: RefChunk<A, E, R>) => RefSubject.Computed<B, E, R>;\n    <A, E, R, B>(ref: RefChunk<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 RefChunk to a single value.",
    "sections": {
      "Why": "Makes reduce a live projection of the chunk; consumers can sample it now or observe it without\ncopying 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/RefChunk.ts",
      "line": 679
    },
    "since": "1.18.0",
    "category": "Derived queries"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefChunk.reduce",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefChunk",
    "qualifiedName": "RefChunk.reduce",
    "declarationKey": "declaration:e736faa107609d7175a642fa",
    "family": "variable",
    "signatures": [
      "export declare const reduce: {\n    <A, B>(b: B, f: (b: B, a: A, index: number) => B): <E, R>(ref: RefChunk<A, E, R>) => RefSubject.Computed<B, E, R>;\n    <A, E, R, B>(ref: RefChunk<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/RefChunk.ts",
        "start": {
          "line": 679,
          "column": 14
        },
        "end": {
          "line": 696,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefChunk.ts",
        "start": {
          "line": 680,
          "column": 3
        },
        "end": {
          "line": 683,
          "column": 69
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefChunk.ts",
        "start": {
          "line": 684,
          "column": 3
        },
        "end": {
          "line": 688,
          "column": 35
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefChunk#reduce"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefChunk",
    "static": false,
    "importedFrom": "declaration:e736faa107609d7175a642fa"
  },
  "declaration": {
    "declarationKey": "declaration:e736faa107609d7175a642fa",
    "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: RefChunk<A, E, R>) => RefSubject.Computed<B, E, R>;\n    <A, E, R, B>(ref: RefChunk<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/RefChunk.ts",
            "start": {
              "line": 679,
              "column": 14
            },
            "end": {
              "line": 696,
              "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: RefChunk<A, E, R>) => RefSubject.Computed<B, E, R>;",
          "<A, E, R, B>(ref: RefChunk<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/RefChunk.ts",
            "start": {
              "line": 680,
              "column": 3
            },
            "end": {
              "line": 683,
              "column": 69
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefChunk.ts",
            "start": {
              "line": 684,
              "column": 3
            },
            "end": {
              "line": 688,
              "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: RefChunk<A, E, R>) => RefSubject.Computed<B, E, R>;\n    <A, E, R, B>(ref: RefChunk<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 RefChunk to a single value.",
    "sections": {
      "Why": "Makes reduce a live projection of the chunk; consumers can sample it now or observe it without\ncopying 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/RefChunk.ts",
        "start": {
          "line": 679,
          "column": 14
        },
        "end": {
          "line": 696,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefChunk.ts",
        "start": {
          "line": 680,
          "column": 3
        },
        "end": {
          "line": 683,
          "column": 69
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefChunk.ts",
        "start": {
          "line": 684,
          "column": 3
        },
        "end": {
          "line": 688,
          "column": 35
        }
      }
    ],
    "since": "1.18.0",
    "category": "Derived queries"
  }
}
