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

Function getFailure

repos/effect/packages/effect/src/internal/result.ts:97–98  ·  view source on GitHub ↗
(self: Result.Result<A, E>)

Source from the content-addressed store, hash-verified

95
96/** @internal */
97export const getFailure = <A, E>(self: Result.Result<A, E>): Option<E> =>
98 isSuccess(self) ? option.none : option.some(self.failure)
99
100/** @internal */
101export const getSuccess = <A, E>(self: Result.Result<A, E>): Option<A> =>

Callers

nothing calls this directly

Calls 2

someMethod · 0.80
isSuccessFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…