A synchronous, pure type for representing computations that can succeed (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/effect-TS/effect-smol/llms.txt
Use this file to discover all available pages before exploring further.
Success<A>) or fail (Failure<E>). Unlike Effect, Result is evaluated eagerly and carries no side effects.
Mental Model
Result<A, E>is a discriminated union:Success<A, E> | Failure<A, E>Successwraps a value of typeA, accessed via.successFailurewraps an error of typeE, accessed via.failure- Monad: chain operations with
flatMap, compose pipelines withpipe - Immutable: all operations return new
Resultvalues; the input is never mutated - Yieldable: in
Effect.gen, producing the inner value or short-circuiting on failure
Note: In Effect v3.x, this type was calledEither. It has been renamed toResultin v4.
