MCPcopy Create free account
hub / github.com/effect-app/libs / getRefKey

Function getRefKey

repos/effect/packages/effect/src/MutableHashMap.ts:493–503  ·  view source on GitHub ↗
(
  bucket: NonEmptyArray<K>,
  key: K
)

Source from the content-addressed store, hash-verified

491 * Use to transform an existing `MutableHashMap` value in place without
492 * inserting missing keys.
493 *
494 * **Example** (Modifying existing values)
495 *
496 * ```ts import.meta.vitest
497 * import { MutableHashMap, Option } from "effect"
498 *
499 * const map = MutableHashMap.make(["count", 5], ["total", 100])
500 *
501 * // Increment existing value
502 * MutableHashMap.modify(map, "count", (n) => n + 1)
503 * MutableHashMap.get(map, "count") // => Option.some(6)
504 *
505 * // Double existing value
506 * MutableHashMap.modify(map, "total", (n) => n * 2)

Callers 1

MutableHashMap.tsFile · 0.85

Calls 1

setMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…