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

Function flip

packages/effect/src/internal/effect.ts:1407–1413  ·  view source on GitHub ↗
(
  self: Effect.Effect<A, E, R>
)

Source from the content-addressed store, hash-verified

1405
1406/** @internal */
1407export const flip = <A, E, R>(
1408 self: Effect.Effect<A, E, R>
1409): Effect.Effect<E, A, R> =>
1410 matchEffect(self, {
1411 onFailure: succeed,
1412 onSuccess: fail
1413 })
1414
1415/** @internal */
1416export const andThen: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected