Hyperlinkv0.8.0-beta.28

BigInt

BigInt.minconsteffect/BigInt.ts:525
(that: bigint): (self: bigint) => bigint
(self: bigint, that: bigint): bigint

Returns the minimum between two bigints.

When to use

Use to select the smaller of two bigint values.

Example (Finding the minimum bigint)

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

assert.deepStrictEqual(BigInt.min(2n, 3n), 2n)
mathmax
Source effect/BigInt.ts:5254 lines
export const min: {
  (that: bigint): (self: bigint) => bigint
  (self: bigint, that: bigint): bigint
} = order.min(Order)