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

Function max

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

Source from the content-addressed store, hash-verified

57 * @since 0.24.0
58 */
59export const max = <A>(O: Order<A>): Semigroup<A> => make((self, that) => O(self, that) === 1 ? self : that)
60
61/**
62 * @category constructors

Callers

nothing calls this directly

Calls 1

makeFunction · 0.70

Tested by

no test coverage detected