Module Core_kernel.Either

This module extends the Base Either module

type ('f, 's) t = ('f'sBase.Either.t =
| First of 'f
| Second of 's
include sig ... end
val bin_read_t : 'f Bin_prot.Read.reader ‑> 's Bin_prot.Read.reader ‑> ('f'st Bin_prot.Read.reader
val __bin_read_t__ : 'f Bin_prot.Read.reader ‑> 's Bin_prot.Read.reader ‑> (int ‑> ('f'st) Bin_prot.Read.reader
val bin_size_t : 'f Bin_prot.Size.sizer ‑> 's Bin_prot.Size.sizer ‑> ('f'st Bin_prot.Size.sizer
val bin_write_t : 'f Bin_prot.Write.writer ‑> 's Bin_prot.Write.writer ‑> ('f'st Bin_prot.Write.writer
include module type of sig ... end with type (f, s) t := (f, s) t
type ('f, 's) t = ('f'sBase__Either.t =
| First of 'f
| Second of 's
val t_of_sexp : (Base__.Sexplib.Sexp.t ‑> 'f) ‑> (Base__.Sexplib.Sexp.t ‑> 's) ‑> Base__.Sexplib.Sexp.t ‑> ('f'st
val sexp_of_t : ('f ‑> Base__.Sexplib.Sexp.t) ‑> ('s ‑> Base__.Sexplib.Sexp.t) ‑> ('f'st ‑> Base__.Sexplib.Sexp.t
val compare : ('f ‑> 'f ‑> int) ‑> ('s ‑> 's ‑> int) ‑> ('f'st ‑> ('f'st ‑> int
val swap : ('f'st ‑> ('s'ft
val value : ('a'at ‑> 'a
val iter : ('a'bt ‑> first:('a ‑> unit) ‑> second:('b ‑> unit) ‑> unit
val value_map : ('a'bt ‑> first:('a ‑> 'c) ‑> second:('b ‑> 'c) ‑> 'c
val map : ('a'bt ‑> first:('a ‑> 'c) ‑> second:('b ‑> 'd) ‑> ('c'dt
val equal : ('f ‑> 'f ‑> bool) ‑> ('s ‑> 's ‑> bool) ‑> ('f'st ‑> ('f'st ‑> bool
val is_first : ('a'bt ‑> bool
val is_second : ('a'bt ‑> bool
val first : 'f ‑> ('f'at
val second : 's ‑> ('a'st
include Quickcheckable.S2 with type (a, b) t := (a, b) t
type 'a gen
type 'a obs
type 'a shr
type ('a, 'b) t
val gen : 'a gen ‑> 'b gen ‑> ('a'bt gen
val obs : 'a obs ‑> 'b obs ‑> ('a'bt obs
val shrinker : 'a shr ‑> 'b shr ‑> ('a'bt shr
module Stable : sig ... end