CRE
- Witness type of Kind to processpublic interface Comonad<CRE> extends Unit<CRE>, Functor<CRE>
Modifier and Type | Method and Description |
---|---|
default <T,R> com.aol.cyclops.hkt.alias.Higher<CRE,R> |
coflatMap(java.util.function.Function<? super com.aol.cyclops.hkt.alias.Higher<CRE,T>,R> mapper,
com.aol.cyclops.hkt.alias.Higher<CRE,T> ds)
Contra-variant flatMap
Transform the supplied data structure with the supplied transformation function
Datastructure is provided to the function which returns a single value
|
<T> T |
extract(com.aol.cyclops.hkt.alias.Higher<CRE,T> ds)
Extract value embedded in datastructure
|
default <T> com.aol.cyclops.hkt.alias.Higher<CRE,com.aol.cyclops.hkt.alias.Higher<CRE,T>> |
nest(com.aol.cyclops.hkt.alias.Higher<CRE,T> ds)
Nest a value inside a value (e.g.
|
default <T> com.aol.cyclops.hkt.alias.Higher<CRE,com.aol.cyclops.hkt.alias.Higher<CRE,T>> nest(com.aol.cyclops.hkt.alias.Higher<CRE,T> ds)
List<List<Integer>>
)ds
- Value to nestdefault <T,R> com.aol.cyclops.hkt.alias.Higher<CRE,R> coflatMap(java.util.function.Function<? super com.aol.cyclops.hkt.alias.Higher<CRE,T>,R> mapper, com.aol.cyclops.hkt.alias.Higher<CRE,T> ds)
mapper
- Transformation functionds
- Datastructure<T> T extract(com.aol.cyclops.hkt.alias.Higher<CRE,T> ds)
ds
- Datatructure to extract value from