Package: effect
Module: BigInt
Provides an addition operation on bigints.
When to use
Use when you need a binary addition function for piping or higher-order APIs instead of the infix addition operator.
Example (Adding bigints)
import { BigInt } from "effect"
import * as assert from "node:assert"
assert.deepStrictEqual(BigInt.sum(2n, 3n), 5n)
See
sumAll for summing an iterable of bigint valuesSignature
declare const sum: { (that: bigint): (self: bigint) => bigint; (self: bigint, that: bigint): bigint; }
Since v2.0.0