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

Function indexOf

packages/effect/src/internal/stm/tMap.ts:63–63  ·  view source on GitHub ↗
(k: K, capacity: number)

Source from the content-addressed store, hash-verified

61
62/** @internal */
63const indexOf = <K>(k: K, capacity: number): number => hash(k) & (capacity - 1)
64
65/** @internal */
66const allocate = <K, V>(

Callers 3

allocateFunction · 0.70
tMap.tsFile · 0.70
resizeFunction · 0.70

Calls 1

hashFunction · 0.70

Tested by

no test coverage detected