Module Invariant.Via_invmap

Parameters

Signature

type 'a t = 'a Req.t

The type held by the Invariant.

val invmap : ('a -> 'b) -> ('b -> 'a) -> 'a t -> 'b t

Transform an 'a t into an 'b t given a transformation from 'a to 'b and one from 'b to 'a.