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

Function increment

packages/effect/src/MutableRef.ts:579–579  ·  view source on GitHub ↗
(self: MutableRef<number>)

Source from the content-addressed store, hash-verified

577 * @since 2.0.0
578 */
579export const increment = (self: MutableRef<number>): MutableRef<number> => update(self, (n) => n + 1)
580
581/**
582 * Increments a numeric MutableRef by 1 and returns the new value.

Callers

nothing calls this directly

Calls 1

updateFunction · 0.50

Tested by

no test coverage detected