seq (to produces 'a Seq.t testable) Because the Seq.t type has become very common in the standard library
contramap which allows you to go from an 'a testable to a 'b testable giving a function from b -> 'a (because a testable is a contravariant functor). I have often found the function useful for implementing testables quickly when there is a trivial transformation.
This PR adds:
seq
(to produces'a Seq.t testable
) Because theSeq.t
type has become very common in the standard librarycontramap
which allows you to go from an'a testable
to a'b testable
giving a function fromb -> 'a
(because a testable is a contravariant functor). I have often found the function useful for implementing testables quickly when there is a trivial transformation.