MCPcopy Create free account
hub / github.com/effect-app/libs / transposeOption

Function transposeOption

repos/effect/packages/effect/src/Result.ts:1789–1793  ·  view source on GitHub ↗
(
  self: Option<Result<A, E>>
)

Source from the content-addressed store, hash-verified

1787
1788/**
1789 * Creates a `Result<Option<A>>` that succeeds with `Some(a)`.
1790 *
1791 * **Details**
1792 *
1793 * - Equivalent to `Result.succeed(Option.some(a))`
1794 * - Useful with {@link transposeOption} patterns
1795 *
1796 * **Example** (Wrapping a value in Some inside a Result)

Callers

nothing calls this directly

Calls 1

mapFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…