| Package | Description |
|---|---|
| com.jnape.palatable.lambda.adt.choice | |
| com.jnape.palatable.lambda.adt.coproduct |
| Modifier and Type | Class and Description |
|---|---|
class |
Choice6<A,B,C,D,E,F>
Canonical ADT representation of
CoProduct6. |
| Modifier and Type | Method and Description |
|---|---|
Choice6<A,B,C,D,E,F> |
Choice7.converge(Fn1<? super G,? extends CoProduct6<A,B,C,D,E,F,?>> convergenceFn)
Converge this coproduct down to a lower order coproduct by mapping the last possible type into an earlier
possible type.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
CoProduct6<A,B,C,D,E,F,CP6 extends CoProduct6<A,B,C,D,E,F,?>>
A generalization of the coproduct of six types.
|
| Modifier and Type | Method and Description |
|---|---|
default CoProduct6<A,B,C,D,E,F,? extends CoProduct6<A,B,C,D,E,F,?>> |
CoProduct7.converge(Fn1<? super G,? extends CoProduct6<A,B,C,D,E,F,?>> convergenceFn)
Converge this coproduct down to a lower order coproduct by mapping the last possible type into an earlier
possible type.
|
default <F> CoProduct6<A,B,C,D,E,F,? extends CoProduct6<A,B,C,D,E,F,?>> |
CoProduct5.diverge()
Diverge this coproduct by introducing another possible type that it could represent.
|
| Modifier and Type | Method and Description |
|---|---|
default CoProduct6<A,B,C,D,E,F,? extends CoProduct6<A,B,C,D,E,F,?>> |
CoProduct7.converge(Fn1<? super G,? extends CoProduct6<A,B,C,D,E,F,?>> convergenceFn)
Converge this coproduct down to a lower order coproduct by mapping the last possible type into an earlier
possible type.
|
default <F> CoProduct6<A,B,C,D,E,F,? extends CoProduct6<A,B,C,D,E,F,?>> |
CoProduct5.diverge()
Diverge this coproduct by introducing another possible type that it could represent.
|
| Modifier and Type | Method and Description |
|---|---|
default CoProduct6<A,B,C,D,E,F,? extends CoProduct6<A,B,C,D,E,F,?>> |
CoProduct7.converge(Fn1<? super G,? extends CoProduct6<A,B,C,D,E,F,?>> convergenceFn)
Converge this coproduct down to a lower order coproduct by mapping the last possible type into an earlier
possible type.
|