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

Function max

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

Source from the content-addressed store, hash-verified

310 * @since 2.0.0
311 */
312export const max = <A>(O: Order<A>): {
313 (that: A): (self: A) => A
314 (self: A, that: A): A
315} => dual(2, (self: A, that: A) => self === that || O(self, that) > -1 ? self : that)
316
317/**
318 * Clamp a value between a minimum and a maximum.

Callers 3

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

Calls

no outgoing calls

Tested by

no test coverage detected