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

Function transposeOption

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

Source from the content-addressed store, hash-verified

1005
1006/** @internal */
1007export const transposeOption = <A = never, E = never, R = never>(
1008 self: Option.Option<Effect.Effect<A, E, R>>
1009): Effect.Effect<Option.Option<A>, E, R> => Option.isNone(self) ? succeedNone : map(self.value, Option.some)
1010
1011/** @internal */
1012export const failCauseSync = <E>(

Callers

nothing calls this directly

Calls 1

mapFunction · 0.85

Tested by

no test coverage detected