Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ optimize
Function
optimize
packages/effect/src/Hash.ts:257–257 ·
view source on GitHub ↗
(n: number)
Source
from the content-addressed store, hash-verified
255
* @since 2.0.0
256
*/
257
export
const
optimize = (n: number): number => (n & 0xbfffffff) | ((n >>> 1) & 0x40000000)
258
259
/**
260
* Checks whether a value implements the Hash
interface
.
Callers
4
number
Function · 0.85
string
Function · 0.85
structureKeys
Function · 0.85
iterableWith
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected