Hyperlinkv0.8.0-beta.28

BigInt

BigInt.multiplyconsteffect/BigInt.ts:128
(that: bigint): (self: bigint) => bigint
(self: bigint, that: bigint): bigint

Provides a multiplication operation on bigints.

When to use

Use to multiply two bigint values.

Example (Multiplying bigints)

import { BigInt } from "effect"
import * as assert from "node:assert"

assert.deepStrictEqual(BigInt.multiply(2n, 3n), 6n)
Source effect/BigInt.ts:1284 lines
export const multiply: {
  (that: bigint): (self: bigint) => bigint
  (self: bigint, that: bigint): bigint
} = dual(2, (self: bigint, that: bigint): bigint => self * that)