effect-io-ai

Package: effect
Module: BigInt

BigInt.multiplyAll

Takes an Iterable of bigints and returns their multiplication as a single number.

Example

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

assert.deepStrictEqual(multiplyAll([2n, 3n, 4n]), 24n)

Signature

declare const multiplyAll: (collection: Iterable<bigint>) => bigint

Source

Since v2.0.0