MCPcopy Index your code
hub / github.com/Effect-TS/effect / max

Function max

packages/typeclass/src/Monoid.ts:46–46  ·  view source on GitHub ↗
(B: Bounded<A>)

Source from the content-addressed store, hash-verified

44 * @since 0.24.0
45 */
46export const max = <A>(B: Bounded<A>): Monoid<A> => fromSemigroup(semigroup.max(B.compare), B.minBound)
47
48/**
49 * The dual of a `Monoid`, obtained by swapping the arguments of `combine`.

Callers

nothing calls this directly

Calls 1

fromSemigroupFunction · 0.85

Tested by

no test coverage detected