(n: bigint): bigintReturns 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)math
Source effect/BigInt.ts:2501 lines
export const const increment: (n: bigint) => bigintReturns 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)
increment = (n: bigintn: bigint): bigint => n: bigintn + const bigint1: bigintbigint1