effect-io-ai

Package: @effect/typeclass
Module: BigInt

BigInt.SemigroupMax

A Semigroup that uses the maximum between two values.

Example

import { SemigroupMax } from "@effect/typeclass/data/BigInt"

console.log(SemigroupMax.combine(2n, 3n))
// 3n

Signature

declare const SemigroupMax: semigroup.Semigroup<bigint>

Source

Since v0.24.0