P
- The transformation type.Mu
- The witness type of this profunctor.public interface ReCartesian<P extends K2,Mu extends ReCartesian _> extends Profunctor P
Cartesian
.ReCartesian
is short for "reified cartesian", though one could also think of it as
a "reverse" or "inverse" operation.Cartesian
Modifier and Type | Method and Description |
---|---|
<A,B,C> P<A,B> |
unfirst(P<(A,C),(B,C)> input)
Converts a transformation on the first type in a pair into a transformation on that type.
|
<A,B,C> P<A,B> |
unsecond(P<(C,A),(C,B)> input)
Converts a transformation on the second type in a pair into a transformation on that type.
|
<A,B,C> P<A,B> unfirst(P<(A,C),(B,C)> input)
Cartesian.first(App2)
.A
- The input transformed type.B
- The output transformed type.C
- The invariant second type in the pair.input
- The pair transformation.<A,B,C> P<A,B> unsecond(P<(C,A),(C,B)> input)
Cartesian.second(App2)
.A
- The input transformed type.B
- The output transformed type.C
- The invariant first type in the pair.input
- The pair transformation.