Hyperlinkv0.8.0-beta.28

BigInt

BigInt.isGreaterThanOrEqualToconsteffect/BigInt.ts:421
(that: bigint): (self: bigint) => boolean
(self: bigint, that: bigint): boolean

Returns a function that checks if a given bigint is greater than or equal to the provided one.

When to use

Use to test whether one bigint is greater than or equal to another.

Example (Checking greater-than-or-equal comparisons)

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

assert.deepStrictEqual(BigInt.isGreaterThanOrEqualTo(2n, 3n), false)
assert.deepStrictEqual(BigInt.isGreaterThanOrEqualTo(3n, 3n), true)
assert.deepStrictEqual(BigInt.isGreaterThanOrEqualTo(4n, 3n), true)
predicates
Source effect/BigInt.ts:4214 lines
export const isGreaterThanOrEqualTo: {
  (that: bigint): (self: bigint) => boolean
  (self: bigint, that: bigint): boolean
} = order.isGreaterThanOrEqualTo(Order)
Referenced by 1 symbols