add CCEqual.{always,never}_eq

close #232
This commit is contained in:
Simon Cruanes 2018-11-02 20:17:36 -05:00
parent 26c8eb33bf
commit 113d03225f

View file

@ -44,6 +44,9 @@ let map f eq x y = eq (f x) (f y)
CCEqual.(list (pair int bool)) l1 l2 = (l1=l2))
*)
let always_eq _ _ = true
let never_eq _ _ = false
module Infix = struct
let (>|=) x f = map f x
end