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

Function optimize

packages/effect/src/Hash.ts:285–285  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

283 * @since 2.0.0
284 */
285export const optimize = (n: number): number => (n & 0xbfffffff) | ((n >>> 1) & 0x40000000)
286
287/**
288 * Checks whether a value implements the Hash interface.

Callers 7

hashFunction · 0.85
randomFunction · 0.85
numberFunction · 0.85
stringFunction · 0.85
hashUnorderedFunction · 0.85
arrayFunction · 0.85
hashIndexedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected