package core_kernel

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

Signature for a 3-tuple module

Signature for a 3-tuple module

Signature for a 3-tuple module

type ('a, 'b, 'c) t = 'a * 'b * 'c
include sig ... end
val t_of_sexp : (Sexplib.Sexp.t -> 'a) -> (Sexplib.Sexp.t -> 'b) -> (Sexplib.Sexp.t -> 'c) -> Sexplib.Sexp.t -> ('a, 'b, 'c) t
val sexp_of_t : ('a -> Sexplib.Sexp.t) -> ('b -> Sexplib.Sexp.t) -> ('c -> Sexplib.Sexp.t) -> ('a, 'b, 'c) t -> Sexplib.Sexp.t
val create : 'a -> 'b -> 'c -> ('a, 'b, 'c) t
val curry : (('a, 'b, 'c) t -> 'd) -> 'a -> 'b -> 'c -> 'd
val uncurry : ('a -> 'b -> 'c -> 'd) -> ('a, 'b, 'c) t -> 'd
val equal : eq1:('a -> 'a -> Base.Bool.t) -> eq2:('b -> 'b -> Base.Bool.t) -> eq3:('c -> 'c -> Base.Bool.t) -> ('a, 'b, 'c) t -> ('a, 'b, 'c) t -> Base.Bool.t
val compare : cmp1:('a -> 'a -> Base.Int.t) -> cmp2:('b -> 'b -> Base.Int.t) -> cmp3:('c -> 'c -> Base.Int.t) -> ('a, 'b, 'c) t -> ('a, 'b, 'c) t -> Base.Int.t
val get1 : ('a, _, _) t -> 'a
val get2 : (_, 'a, _) t -> 'a
val get3 : (_, _, 'a) t -> 'a
val map1 : f:('a -> 'd) -> ('a, 'b, 'c) t -> ('d, 'b, 'c) t
  • deprecated [since 2015-12] use map_fst
val map2 : f:('b -> 'd) -> ('a, 'b, 'c) t -> ('a, 'd, 'c) t
  • deprecated [since 2015-12] use map_snd
val map3 : f:('c -> 'd) -> ('a, 'b, 'c) t -> ('a, 'b, 'd) t
  • deprecated [since 2015-12] use map_trd
val map_fst : ('a, 'b, 'c) t -> f:('a -> 'd) -> ('d, 'b, 'c) t
val map_snd : ('a, 'b, 'c) t -> f:('b -> 'd) -> ('a, 'd, 'c) t
val map_trd : ('a, 'b, 'c) t -> f:('c -> 'd) -> ('a, 'b, 'd) t
OCaml

Innovation. Community. Security.