MCPcopy Create free account
hub / github.com/effect-app/libs / max

Function max

repos/effect/packages/effect/src/Order.ts:835–838  ·  view source on GitHub ↗
(O: Order<A>)

Source from the content-addressed store, hash-verified

833 * @since 2.0.0
834 */
835export const max = <A>(O: Order<A>): {
836 (that: A): (self: A) => A
837 (self: A, that: A): A
838} => dual(2, (self: A, that: A) => self === that || O(self, that) > -1 ? self : that)
839
840/**
841 * Restricts a value between a minimum and a maximum according to the given order.

Callers 3

clampFunction · 0.70
Order.test.tsFile · 0.50
toRangeConstraintsFunction · 0.50

Calls 1

OInterface · 0.85

Tested by

no test coverage detected