MCPcopy
hub / github.com/Effect-TS/effect / make

Function make

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

Source from the content-addressed store, hash-verified

40 * @since 2.0.0
41 */
42export const make = <A>(
43 compare: (self: A, that: A) => -1 | 0 | 1
44): Order<A> =>
45(self, that) => self === that ? 0 : compare(self, that)
46
47/**
48 * @category instances

Callers 6

Order.tsFile · 0.70
reverseFunction · 0.70
emptyFunction · 0.70
allFunction · 0.70
arrayFunction · 0.70
structFunction · 0.70

Calls 1

compareFunction · 0.85

Tested by

no test coverage detected