Module CCEqual
Equality Combinators
val poly : 'a tStandard polymorphic equality.
val physical : 'a tStandard physical equality.
- since
- 2.0
val int : int tval string : string tval bool : bool tval float : float tval unit : unit tval list : 'a t -> 'a list tval array : 'a t -> 'a array tval option : 'a t -> 'a option tval pair : 'a t -> 'b t -> ('a * 'b) tval triple : 'a t -> 'b t -> 'c t -> ('a * 'b * 'c) tval map : ('a -> 'b) -> 'b t -> 'a tmap f eqis the equality function that, given objectsxandy, projectsxandyusingf(e.g. using a record field) and then compares those projections witheq. Example:map fst intcompares values of type(int * 'a)by their first component.
val always_eq : _ tAlways returns true. All values are equal.
- since
- 3.0
val never_eq : _ tAlways returns false. No values are, so this is not even reflexive (i.e.
x=xis false). Be careful!- since
- 3.0
module Infix : sig ... end