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

Function makeOrder

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

Source from the content-addressed store, hash-verified

1960 * @since 4.0.0
1961 */
1962export const makeOrder = <A>(O: Order<A>): Order<Option<A>> =>
1963 order.make((self, that) => isSome(self) ? (isSome(that) ? O(self.value, that.value) : 1) : -1)
1964
1965/**
1966 * Lifts a binary function to operate on two `Option` values.

Callers

nothing calls this directly

Calls 2

isSomeFunction · 0.85
makeMethod · 0.65

Tested by

no test coverage detected