MCPcopy Create free account
hub / github.com/Effect-TS/effect / getRefKey

Function getRefKey

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

Source from the content-addressed store, hash-verified

470})
471
472const getRefKey = <K>(
473 bucket: NonEmptyArray<K>,
474 key: K
475) => {
476 for (let i = 0, len = bucket.length; i < len; i++) {
477 if (Equal.equals(key, bucket[i])) {
478 return bucket[i]
479 }
480 }
481}
482
483/**
484 * Updates the value of the specified key within the MutableHashMap if it exists.

Callers 1

MutableHashMap.tsFile · 0.85

Calls 1

equalsMethod · 0.80

Tested by

no test coverage detected