function hash(k: K): number { const h = Hash.unknown(k) return h ^ (h >>> 16) } /** * @internal * @tsplus static effect/core/stm/TMap.Ops indexOf */ export function indexOf(k: K, capacity: number): number { return hash(k) & (capacity - 1) }