Package: effect
Module: BigInt
Returns the result of adding 1n to a bigint.
When to use
Use to increment a bigint counter by one.
Example (Incrementing a bigint)
import { BigInt } from "effect"
import * as assert from "node:assert"
assert.deepStrictEqual(BigInt.increment(2n), 3n)
Signature
declare const increment: (n: bigint) => bigint
Since v2.0.0