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

Function min

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

Source from the content-addressed store, hash-verified

300 * @since 2.0.0
301 */
302export const min = <A>(O: Order<A>): {
303 (that: A): (self: A) => A
304 (self: A, that: A): A
305} => dual(2, (self: A, that: A) => self === that || O(self, that) < 1 ? self : that)
306
307/**
308 * Take the maximum of two values. If they are considered equal, the first argument is chosen.

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected