Module Either.Invariant

Parameters

Signature

type 'a t = (T.t, 'a) Bifunctor.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.