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

Function min

packages/typeclass/src/Semigroup.ts:51–51  ·  view source on GitHub ↗
(O: Order<A>)

Source from the content-addressed store, hash-verified

49 * @since 0.24.0
50 */
51export const min = <A>(O: Order<A>): Semigroup<A> => make((self, that) => O(self, that) === -1 ? self : that)
52
53/**
54 * `Semigroup` that returns last maximum of elements.

Callers

nothing calls this directly

Calls 1

makeFunction · 0.70

Tested by

no test coverage detected