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

Function min

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

Source from the content-addressed store, hash-verified

34 * @since 0.24.0
35 */
36export const min = <A>(B: Bounded<A>): Monoid<A> => fromSemigroup(semigroup.min(B.compare), B.maxBound)
37
38/**
39 * Get a monoid where `combine` will return the maximum, based on the provided bounded order.

Callers

nothing calls this directly

Calls 1

fromSemigroupFunction · 0.85

Tested by

no test coverage detected