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

Function succeedSome

packages/effect/src/Result.ts:1809–1809  ·  view source on GitHub ↗
(a: A)

Source from the content-addressed store, hash-verified

1807 * @since 4.0.0
1808 */
1809export const succeedSome = <A, E = never>(a: A): Result<Option<A>, E> => succeed(option_.some(a))
1810
1811/**
1812 * Runs a side-effect on the success value without altering the `Result`.

Callers

nothing calls this directly

Calls 2

someMethod · 0.80
succeedFunction · 0.70

Tested by

no test coverage detected