Module Base.EitherSource
Source
val compare :
('a -> 'a -> int) ->
('b -> 'b -> int) ->
('a, 'b) Base.Either.t ->
('a, 'b) Base.Either.t ->
intSource
val hash_fold_t :
(Base.Hash.state -> 'a -> Base.Hash.state) ->
(Base.Hash.state -> 'b -> Base.Hash.state) ->
Base.Hash.state ->
('a, 'b) Base.Either.t ->
Base.Hash.stateinclude Sexplib0.Sexpable.S2 with type ('f, 's) t := ('f, 's) Base.Either.t
Source
val t_of_sexp :
(Sexplib0.Sexp.t -> 'a) ->
(Sexplib0.Sexp.t -> 'b) ->
Sexplib0.Sexp.t ->
('a, 'b) Base.Either.tSource
val sexp_of_t :
('a -> Sexplib0.Sexp.t) ->
('b -> Sexplib0.Sexp.t) ->
('a, 'b) Base.Either.t ->
Sexplib0.Sexp.tSource
val t_sexp_grammar :
'f Sexplib0.Sexp_grammar.t ->
's Sexplib0.Sexp_grammar.t ->
('f, 's) Base.Either.t Sexplib0.Sexp_grammar.tinclude Base.Invariant.S2 with type ('a, 'b) t := ('a, 'b) Base.Either.t
Source
val map :
('a, 'b) Base.Either.t ->
first:('a -> 'c) ->
second:('b -> 'd) ->
('c, 'd) Base.Either.tSource
val equal :
('f -> 'f -> bool) ->
('s -> 's -> bool) ->
('f, 's) Base.Either.t ->
('f, 's) Base.Either.t ->
boolSource
val local_equal :
('f -> 'f -> bool) ->
('s -> 's -> bool) ->
('f, 's) Base.Either.t ->
('f, 's) Base.Either.t ->
boolfirst and second are First.return and Second.return.