Module Lattice_bounds.TopBottom

type 'a t = 'a or_top_bottom
module Operators : sig ... end

Operators

val hash : ( 'a -> int ) -> 'a t -> int

Datatype

val equal : ( 'a -> 'a -> bool ) -> 'a t -> 'a t -> bool
val compare : ( 'a -> 'a -> int ) -> 'a t -> 'a t -> int
val pretty : ( Stdlib.Format.formatter -> 'a -> unit ) -> Stdlib.Format.formatter -> 'a t -> unit

Pretty-printing

val join : ( 'a -> 'a -> [< 'a t ] ) -> 'a t -> 'a t -> 'a t
val narrow : ( 'a -> 'a -> [< 'a t ] ) -> 'a t -> 'a t -> 'a t
val iter : ( 'a -> unit ) -> 'a t -> unit
val bind : ( 'a -> 'b t ) -> 'a t -> 'b t
val fold : top:'b -> bottom:'b -> ( 'a -> 'b ) -> 'a t -> 'b
val map : ( 'a -> 'b ) -> 'a t -> 'b t