{
  "id": "@typed/fx/RefHashMap#map",
  "canonicalId": "@typed/fx/RefHashMap#map",
  "symbol": {
    "id": "@typed/fx/RefHashMap#map",
    "packageName": "@typed/fx",
    "moduleName": "RefHashMap",
    "exportName": "map",
    "kind": "constant",
    "signatures": [
      "export declare const map: {\n    <K, V>(f: (value: V, key: K) => V): <E, R>(ref: RefHashMap<K, V, E, R>) => Effect.Effect<HashMap.HashMap<K, V>, E, R>;\n    <K, V, E, R>(ref: RefHashMap<K, V, E, R>, f: (value: V, key: K) => V): Effect.Effect<HashMap.HashMap<K, V>, E, R>;\n};"
    ],
    "summary": "Map values in place (endomorphic).",
    "sections": {
      "Why": "Applies map to the committed HashMap through `RefSubject.update` and publishes one coherent\nreplacement; this is a mutation, not a read-only Computed projection.",
      "Ownership and lifetime": "The Effect starts when run, participates in the source ref's serialized update boundary, and\nacquires no resource. It returns the committed HashMap and retains the ref's E and R channels."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefHashMap.ts",
      "line": 342
    },
    "since": "1.18.0",
    "category": "State updates"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/RefHashMap#map",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": "RefHashMap",
    "consumerSpecifier": "@typed/fx/RefHashMap",
    "exportName": "map",
    "qualifiedName": "map",
    "declarationKey": "declaration:2fccd33a86bbe18e7f62d82d",
    "family": "variable",
    "signatures": [
      "export declare const map: {\n    <K, V>(f: (value: V, key: K) => V): <E, R>(ref: RefHashMap<K, V, E, R>) => Effect.Effect<HashMap.HashMap<K, V>, E, R>;\n    <K, V, E, R>(ref: RefHashMap<K, V, E, R>, f: (value: V, key: K) => V): Effect.Effect<HashMap.HashMap<K, V>, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefHashMap.ts",
        "start": {
          "line": 342,
          "column": 14
        },
        "end": {
          "line": 352,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefHashMap.ts",
        "start": {
          "line": 343,
          "column": 3
        },
        "end": {
          "line": 345,
          "column": 88
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefHashMap.ts",
        "start": {
          "line": 346,
          "column": 3
        },
        "end": {
          "line": 349,
          "column": 49
        }
      }
    ],
    "aliases": [
      "@typed/fx#RefHashMap.map"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:2fccd33a86bbe18e7f62d82d",
    "name": "map",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const map: {\n    <K, V>(f: (value: V, key: K) => V): <E, R>(ref: RefHashMap<K, V, E, R>) => Effect.Effect<HashMap.HashMap<K, V>, E, R>;\n    <K, V, E, R>(ref: RefHashMap<K, V, E, R>, f: (value: V, key: K) => V): Effect.Effect<HashMap.HashMap<K, V>, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefHashMap.ts",
            "start": {
              "line": 342,
              "column": 14
            },
            "end": {
              "line": 352,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<K, V>(f: (value: V, key: K) => V): <E, R>(ref: RefHashMap<K, V, E, R>) => Effect.Effect<HashMap.HashMap<K, V>, E, R>;",
          "<K, V, E, R>(ref: RefHashMap<K, V, E, R>, f: (value: V, key: K) => V): Effect.Effect<HashMap.HashMap<K, V>, E, R>;"
        ],
        "typeParameters": [
          "K",
          "V",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefHashMap.ts",
            "start": {
              "line": 343,
              "column": 3
            },
            "end": {
              "line": 345,
              "column": 88
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefHashMap.ts",
            "start": {
              "line": 346,
              "column": 3
            },
            "end": {
              "line": 349,
              "column": 49
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const map: {\n    <K, V>(f: (value: V, key: K) => V): <E, R>(ref: RefHashMap<K, V, E, R>) => Effect.Effect<HashMap.HashMap<K, V>, E, R>;\n    <K, V, E, R>(ref: RefHashMap<K, V, E, R>, f: (value: V, key: K) => V): Effect.Effect<HashMap.HashMap<K, V>, E, R>;\n};"
    ],
    "typeParameters": [
      "K",
      "V",
      "E",
      "R"
    ],
    "summary": "Map values in place (endomorphic).",
    "sections": {
      "Why": "Applies map to the committed HashMap through `RefSubject.update` and publishes one coherent\nreplacement; this is a mutation, not a read-only Computed projection.",
      "Ownership and lifetime": "The Effect starts when run, participates in the source ref's serialized update boundary, and\nacquires no resource. It returns the committed HashMap and retains the ref's E and R channels."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefHashMap.ts",
        "start": {
          "line": 342,
          "column": 14
        },
        "end": {
          "line": 352,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefHashMap.ts",
        "start": {
          "line": 343,
          "column": 3
        },
        "end": {
          "line": 345,
          "column": 88
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefHashMap.ts",
        "start": {
          "line": 346,
          "column": 3
        },
        "end": {
          "line": 349,
          "column": 49
        }
      }
    ],
    "since": "1.18.0",
    "category": "State updates"
  }
}
