Module Ocamlformat_stdlib.Either
type (!'f, !'s) t =
| First of 'f
| Second of 's
val compare :
('a -> 'a -> int) ->
('b -> 'b -> int) ->
('a, 'b) t ->
('a, 'b) t ->
int
val t_of_sexp :
(Sexplib0__.Sexp.t -> 'a) ->
(Sexplib0__.Sexp.t -> 'b) ->
Sexplib0__.Sexp.t ->
('a, 'b) t
val sexp_of_t :
('a -> Sexplib0__.Sexp.t) ->
('b -> Sexplib0__.Sexp.t) ->
('a, 'b) t ->
Sexplib0__.Sexp.t
val invariant : ('a -> unit) -> ('b -> unit) -> ('a, 'b) t -> unit
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
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