package odoc

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

The result type and a bind operator. This module is meant to be opened.

type ('a, 'b) result = ('a, 'b) Result.result =
  1. | Ok of 'a
  2. | Error of 'b

Re-export for compat

val map_error : ('a -> 'b) -> ('c, 'a) result -> ('c, 'b) result
val of_option : error:'a -> 'b option -> ('b, 'a) result
val bind : ('a, 'b) result -> ('a -> ('c, 'b) result) -> ('c, 'b) result
val (>>=) : ('a, 'b) result -> ('a -> ('c, 'b) result) -> ('c, 'b) result
OCaml

Innovation. Community. Security.