Results.jl Documentation

Results.jl provides a Result and Option type for computation, as featured in Rust, Haskell (as Either), OCaml, and many more.

The core Result type is simply an alias for Union{Ok{T}, Err{E}}, allowing you to dispatch on Ok and Err variants separately. The Option type is defined as Union{Base.Some{T}, Base.Nothing}, allowing for easy compatibility with other libraries.

For a quick overview of the supported functions, visit the Quick Reference. For a detailed description of each function, visit the API. A tutorial and examples are under construction.

Outline

Index