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

Function flip

packages/effect/src/Either.ts:776–776  ·  view source on GitHub ↗
(self: Either<A, E>)

Source from the content-addressed store, hash-verified

774 * @category mapping
775 */
776export const flip = <A, E>(self: Either<A, E>): Either<E, A> => isLeft(self) ? right(self.left) : left(self.right)
777
778const adapter = Gen.adapter<EitherTypeLambda>()
779

Callers

nothing calls this directly

Calls 3

isLeftFunction · 0.50
rightFunction · 0.50
leftFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…