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, 'd) result -> ('e, 'f) result
val of_option : error:'a -> 'b option -> ('c, 'd) result
val bind : ('a, 'b) result -> ('c -> ('d, 'e) result) -> ('d, 'e) result
val (>>=) : ('a, 'b) result -> ('a -> ('c, 'b) result) -> ('c, 'b) result
OCaml

Innovation. Community. Security.