CCEitherEither Monad
Module that is compatible with Either form OCaml 4.12 but can be use with any ocaml version compatible with container
type 'a printer = Stdlib.Format.formatter -> 'a -> unitval left : 'a -> ('a, 'b) tleft l is Left l
val right : 'b -> ('a, 'b) tright r is Right r
val is_left : ('a, 'b) t -> boolis_left x checks if x = Left _
val is_right : ('a, 'b) t -> boolis_right x checks if x = Right _
val find_left : ('a, 'b) t -> 'a optionfind_left x returns l if x = Left l and None otherwise.
val find_right : ('a, 'b) t -> 'b optionfind_right x returns r if x = Left r and None otherwise.
Map using left or right.
val fold : left:('a -> 'c) -> right:('b -> 'c) -> ('a, 'b) t -> 'cFold using left or right.
val iter : left:('a -> unit) -> right:('b -> unit) -> ('a, 'b) t -> unitIter using left or right.
val for_all : left:('a -> bool) -> right:('b -> bool) -> ('a, 'b) t -> boolCheck some property on Left or Right variant.