P - The transformation type.Mu - The witness type of this profunctor.public interface ReCocartesian<P extends K2,Mu extends ReCocartesian _> extends Profunctor P
Either into a transformation
on that type. This type class implements the inverse of Cocartesian.ReCocartesian is short for "reified cocartesian", though one could also think of it as
a "reverse" or "inverse" operation.Cocartesian| Modifier and Type | Method and Description |
|---|---|
<A,B,C> P<A,B> |
unleft(P<(A|C),(B|C)> input)
Converts a transformation on the left type in an
Either into a transformation on that type, discarding
the invariant right type. |
<A,B,C> P<A,B> |
unright(P<(C|A),(C|B)> input)
Converts a transformation on the right type in an
Either into a transformation on that type, discarding
the invariant left type. |
<A,B,C> P<A,B> unleft(P<(A|C),(B|C)> input)
Either into a transformation on that type, discarding
the invariant right type. This method is the inverse of Cocartesian.left(App2).