EitherThis module defines the common Either interface that is provided for all OCaml versions. For documentation of these functions, refer to the standard library.
val left : 'a -> ('a, 'b) tval right : 'b -> ('a, 'b) tval is_left : ('a, 'b) t -> boolval is_right : ('a, 'b) t -> boolval find_left : ('a, 'b) t -> 'a optionval find_right : ('a, 'b) t -> 'b optionval fold : left:('a -> 'c) -> right:('b -> 'c) -> ('a, 'b) t -> 'cval iter : left:('a -> unit) -> right:('b -> unit) -> ('a, 'b) t -> unitval for_all : left:('a -> bool) -> right:('b -> bool) -> ('a, 'b) t -> bool