MCPcopy Create free account
hub / github.com/Effect-TS/effect / min

Function min

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

Source from the content-addressed store, hash-verified

827 * @since 2.0.0
828 */
829export const min = <A>(O: Order<A>): {
830 (that: A): (self: A) => A
831 (self: A, that: A): A
832} => dual(2, (self: A, that: A) => self === that || O(self, that) < 1 ? self : that)
833
834/**
835 * Returns the maximum of two values according to the given order. If they are equal, returns the first argument.

Callers 7

clampFunction · 0.70
updateMethod · 0.50
drawCircleMethod · 0.50
placeMethod · 0.50
layoutSubviewsMethod · 0.50
Order.test.tsFile · 0.50
CodePoints.test.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected