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

Function make

packages/effect/src/Order.ts:111–115  ·  view source on GitHub ↗
(
  compare: (self: A, that: A) => -1 | 0 | 1
)

Source from the content-addressed store, hash-verified

109 * @since 2.0.0
110 */
111export function make<A>(
112 compare: (self: A, that: A) => -1 | 0 | 1
113): Order<A> {
114 return (self, that) => self === that ? 0 : compare(self, that)
115}
116
117/**
118 * Order instance for strings that compares them lexicographically using JavaScript's `<` operator.

Callers 7

Order.tsFile · 0.70
flipFunction · 0.70
alwaysEqualFunction · 0.70
combineAllFunction · 0.70
TupleFunction · 0.70
Array_Function · 0.70
StructFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected