sidekick/util/either.mli
2014-12-15 17:09:01 +01:00

11 lines
184 B
OCaml

type ('a, 'b) t =
| Left of 'a
| Right of 'b
val mk_left : 'a -> ('a, 'b) t
val mk_right : 'b -> ('a, 'b) t
val destruct : ('a, 'b) t ->
('a -> 'c) -> ('b -> 'c) -> 'c