Module Core_kernel.Either

This module extends Base.Either.

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 compare : ('f ‑> 'f ‑> int) ‑> ('s ‑> 's ‑> int) ‑> ('f'st ‑> ('f'st ‑> int
val hash_fold_t : (Base.Hash.state ‑> 'f ‑> Base.Hash.state) ‑> (Base.Hash.state ‑> 's ‑> Base.Hash.state) ‑> Base.Hash.state ‑> ('f'st ‑> Base.Hash.state
val t_of_sexp : (Base.Sexp.t ‑> 'f) ‑> (Base.Sexp.t ‑> 's) ‑> Base.Sexp.t ‑> ('f'st
val sexp_of_t : ('f ‑> Base.Sexp.t) ‑> ('s ‑> Base.Sexp.t) ‑> ('f'st ‑> Base.Sexp.t
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 Comparator.Derived2 with type (a, b) t := (a, b) t
type ('a, 'b) t
type ('cmp_a, 'cmp_b) comparator_witness
val comparator : ('a'cmp_aComparator.comparator ‑> ('b'cmp_bComparator.comparator ‑> (('a'bt, ('cmp_a'cmp_bcomparator_witnessComparator.comparator
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