Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ decrement
Function
decrement
packages/effect/src/MutableRef.ts:224–224 ·
view source on GitHub ↗
(self: MutableRef<number>)
Source
from the content-addressed store, hash-verified
222
* @since 2.0.0
223
*/
224
export
const
decrement = (self: MutableRef<number>): MutableRef<number> => update(self, (n) => n - 1)
225
226
/**
227
* Decrements a numeric MutableRef by 1 and returns the
new
value.
Callers
nothing calls this directly
Calls
1
update
Function · 0.50
Tested by
no test coverage detected