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

Function reverse

packages/effect/src/Ordering.ts:95–95  ·  view source on GitHub ↗
(o: Ordering)

Source from the content-addressed store, hash-verified

93 * @since 2.0.0
94 */
95export const reverse = (o: Ordering): Ordering => (o === -1 ? 1 : o === 1 ? -1 : 0)
96
97/**
98 * Matches an `Ordering` value and returns the branch selected by that ordering.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected