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

Function flip

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

Source from the content-addressed store, hash-verified

277 * @since 4.0.0
278 */
279export function flip<A>(O: Order<A>): Order<A> {
280 return make((self, that) => O(that, self))
281}
282
283/**
284 * Combines two `Order` instances to create a new `Order` that first compares using the first `Order`,

Callers 3

toEncodedFunction · 0.70
flipEncodingFunction · 0.70
reverseBodyFunction · 0.70

Calls 1

makeFunction · 0.70

Tested by

no test coverage detected