P - The profunctor type.Mu - The witness type for this profunctor.public interface Closed<P extends K2,Mu extends Closed.Mu> extends Profunctor P
Profunctor that may be turned into a transformation on functions. This allows one to pass functions
through a profunctor and interleave them into the effects governed through this profunctor.| Modifier and Type | Interface and Description |
|---|---|
static interface |
Closed.Mu
The witness type for a
Closed. |
| Modifier and Type | Method and Description |
|---|---|
<A,B,X> P<(X) -> A,(X) -> B> |
closed(P<A,B> input)
Partially composes the given transformation by creating a transformation on functions based on it.
|
static <P extends K2,Proof extends Closed.Mu> |
unbox(Proof<P> proofBox)
Casts a boxed
Closed to its unboxed form. |
static <P extends K2,Proof extends Closed.Mu> Closed<P,Proof> unbox(Proof<P> proofBox)
Closed to its unboxed form.unbox in interface Profunctor P extends K2P - The profunctor type.Proof - The witness type.proofBox - The boxed profunctor.<A,B,X> P<(X) -> A,(X) -> B> closed(P<A,B> input)
A - The input type.B - The output type.X - An intermediary input type.input - The transformation.