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

Function min

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

Source from the content-addressed store, hash-verified

798 * @since 2.0.0
799 */
800export const min = <A>(O: Order<A>): {
801 (that: A): (self: A) => A
802 (self: A, that: A): A
803} => dual(2, (self: A, that: A) => self === that || O(self, that) < 1 ? self : that)
804
805/**
806 * Returns the maximum of two values according to the given order. If they are equal, returns the first argument.

Callers 3

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

Calls 1

OInterface · 0.85

Tested by

no test coverage detected