package io

  1. Overview
  2. Docs

Module Elements.EitherSource

Sourcemodule Public : sig ... end
include module type of struct include Public end
Sourcetype ('a, 'b) either = ('a, 'b) Public.either =
  1. | Left of 'a
  2. | Right of 'b
Sourceval either : ('a -> 'b) -> ('c -> 'b) -> ('a, 'c) either -> 'b
Sourcetype ('a, 'b) t = ('a, 'b) either
Sourceval return : 'a -> ('b, 'a) either
Sourceval (>>=) : ('a, 'b) either -> ('b -> ('a, 'c) either) -> ('a, 'c) either
OCaml

Innovation. Community. Security.