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

Function getOrder

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

Source from the content-addressed store, hash-verified

1729 * @since 2.0.0
1730 */
1731export const getOrder = <A>(O: Order<A>): Order<Option<A>> =>
1732 order.make((self, that) => isSome(self) ? (isSome(that) ? O(self.value, that.value) : 1) : -1)
1733
1734/**
1735 * Lifts a binary function to work with `Option` values, allowing the function

Callers

nothing calls this directly

Calls 2

isSomeFunction · 0.85
makeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…