P - The transformation type.Mu - The witness type for this profunctor.public interface Cartesian<P extends K2,Mu extends Cartesian _> extends Profunctor P
| Modifier and Type | Method and Description | 
|---|---|
| <A,B,C> P<(A,C),(B,C)> | first(P<A,B> input)Converts the given transformation into one that transforms the first type of a  Pair. | 
| default <A,B,C> P<(C,A),(C,B)> | second(P<A,B> input)Converts the given transformation into one that transforms the second type of a  Pair. | 
| default FunctorProfunctor<CartesianLike _> P | toFP2()Converts this profunctor into a  FunctorProfunctorthat distributesCartesianLikefunctors. | 
<A,B,C> P<(A,C),(B,C)> first(P<A,B> input)
Pair. The second type
 is not transformed - any values of that type are passed through the returned transformation unchanged.A - The input type.B - The output type.C - A "pass-through" type that is not transformed.input - The transformation.default <A,B,C> P<(C,A),(C,B)> second(P<A,B> input)
Pair. The first type
 is not transformed - any values of that type are passed through the returned transformation unchanged.first(App2) and swaps the order of the types in the
 Pair.A - The input type.B - The output type.C - A "pass-through" type that is not transformed.input - The transformation.default FunctorProfunctor<CartesianLike _> P toFP2()
FunctorProfunctor that distributes CartesianLike functors.