{
  "id": "@typed/fx#RefArray.reduce",
  "canonicalId": "@typed/fx/RefArray#reduce",
  "symbol": {
    "id": "@typed/fx#RefArray.reduce",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefArray.reduce",
    "kind": "constant",
    "signatures": [
      "export declare const reduce: {\n    <A, B>(b: B, f: (b: B, a: A, index: number) => B): <E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<B, E, R>;\n    <A, E, R, B>(ref: RefArray<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 RefArray to a single value.",
    "sections": {
      "Why": "Makes reduce a live projection of the array; 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/RefArray.ts",
      "line": 560
    },
    "since": "1.18.0",
    "category": "Derived queries"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefArray.reduce",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefArray",
    "qualifiedName": "RefArray.reduce",
    "declarationKey": "declaration:a6f8186f4c6590435516aa7e",
    "family": "variable",
    "signatures": [
      "export declare const reduce: {\n    <A, B>(b: B, f: (b: B, a: A, index: number) => B): <E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<B, E, R>;\n    <A, E, R, B>(ref: RefArray<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/RefArray.ts",
        "start": {
          "line": 560,
          "column": 14
        },
        "end": {
          "line": 577,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 561,
          "column": 3
        },
        "end": {
          "line": 564,
          "column": 69
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 565,
          "column": 3
        },
        "end": {
          "line": 569,
          "column": 35
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefArray#reduce"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefArray",
    "static": false,
    "importedFrom": "declaration:a6f8186f4c6590435516aa7e"
  },
  "declaration": {
    "declarationKey": "declaration:a6f8186f4c6590435516aa7e",
    "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: RefArray<A, E, R>) => RefSubject.Computed<B, E, R>;\n    <A, E, R, B>(ref: RefArray<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/RefArray.ts",
            "start": {
              "line": 560,
              "column": 14
            },
            "end": {
              "line": 577,
              "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: RefArray<A, E, R>) => RefSubject.Computed<B, E, R>;",
          "<A, E, R, B>(ref: RefArray<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/RefArray.ts",
            "start": {
              "line": 561,
              "column": 3
            },
            "end": {
              "line": 564,
              "column": 69
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefArray.ts",
            "start": {
              "line": 565,
              "column": 3
            },
            "end": {
              "line": 569,
              "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: RefArray<A, E, R>) => RefSubject.Computed<B, E, R>;\n    <A, E, R, B>(ref: RefArray<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 RefArray to a single value.",
    "sections": {
      "Why": "Makes reduce a live projection of the array; 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/RefArray.ts",
        "start": {
          "line": 560,
          "column": 14
        },
        "end": {
          "line": 577,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 561,
          "column": 3
        },
        "end": {
          "line": 564,
          "column": 69
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 565,
          "column": 3
        },
        "end": {
          "line": 569,
          "column": 35
        }
      }
    ],
    "since": "1.18.0",
    "category": "Derived queries"
  }
}
