package core_kernel

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

This module extends Base.Either.

type ('f, 's) t = ('f, 's) Base.Either.t =
  1. | First of 'f
  2. | Second of 's
include module type of struct include Base.Either end with type ('f, 's) t := ('f, 's) t
val compare : ('f -> 'f -> int) -> ('s -> 's -> int) -> ('f, 's) t -> ('f, 's) t -> int
val hash_fold_t : (Base__.Ppx_hash_lib.Std.Hash.state -> 'f -> Base__.Ppx_hash_lib.Std.Hash.state) -> (Base__.Ppx_hash_lib.Std.Hash.state -> 's -> Base__.Ppx_hash_lib.Std.Hash.state) -> Base__.Ppx_hash_lib.Std.Hash.state -> ('f, 's) t -> Base__.Ppx_hash_lib.Std.Hash.state
val t_of_sexp : (Base__.Sexplib.Sexp.t -> 'f) -> (Base__.Sexplib.Sexp.t -> 's) -> Base__.Sexplib.Sexp.t -> ('f, 's) t
val sexp_of_t : ('f -> Base__.Sexplib.Sexp.t) -> ('s -> Base__.Sexplib.Sexp.t) -> ('f, 's) t -> Base__.Sexplib.Sexp.t
val invariant : 'a Base__.Invariant_intf.inv -> 'b Base__.Invariant_intf.inv -> ('a, 'b) t Base__.Invariant_intf.inv
val swap : ('f, 's) t -> ('s, 'f) t
val value : ('a, 'a) t -> 'a
val iter : ('a, 'b) t -> first:('a -> unit) -> second:('b -> unit) -> unit
val value_map : ('a, 'b) t -> first:('a -> 'c) -> second:('b -> 'c) -> 'c
val map : ('a, 'b) t -> first:('a -> 'c) -> second:('b -> 'd) -> ('c, 'd) t
val equal : ('f -> 'f -> bool) -> ('s -> 's -> bool) -> ('f, 's) t -> ('f, 's) t -> bool
module First : sig ... end
module Second : sig ... end
val is_first : ('a, 'b) t -> bool
val is_second : ('a, 'b) t -> bool
val first : 'f -> ('f, 'a) t
val second : 's -> ('a, 's) t
module Export : sig ... end
include Comparator.Derived2 with type ('a, 'b) t := ('a, 'b) t
type ('cmp_a, 'cmp_b) comparator_witness
val comparator : ('a, 'cmp_a) Comparator.comparator -> ('b, 'cmp_b) Comparator.comparator -> (('a, 'b) t, ('cmp_a, 'cmp_b) comparator_witness) Comparator.comparator
include Quickcheckable.S2 with type ('a, 'b) t := ('a, 'b) t
module Stable : sig ... end
OCaml

Innovation. Community. Security.