All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
<R> Cofree<W,R> |
coflatMap(java.util.function.Function<? super Cofree<W,T>,? extends R> f) |
T |
extract() |
Cofree<W,T> |
forceAll() |
Cofree<W,T> |
forceTail() |
T |
get() |
<R> Cofree<W,R> |
map(java.util.function.Function<? super T,? extends R> f) |
Cofree<W,T> |
mapBranchingRoot(NaturalTransformation<W,W> nat) |
<R> Cofree<R,T> |
mapBranchingS(Functor<R> functor,
NaturalTransformation<W,R> nat) |
<R> Cofree<R,T> |
mapBranchingT(Functor<R> functor,
NaturalTransformation<W,R> nat) |
static <W,T> Cofree<W,T> |
narrowK(Higher<Higher<Witness.cofree,W>,T> cof) |
static <W,T> Cofree<W,T> |
narrowK2(Higher2<Witness.cofree,W,T> cof) |
Cofree<W,Cofree<W,T>> |
nest() |
static <W,T> Cofree<W,T> |
of(Functor<W> functor,
T head,
Eval<Higher<W,Cofree<W,T>>> tail) |
Higher<W,Cofree<W,T>> |
tailForced() |
<R> Cofree<W,R> |
transform(java.util.function.Function<? super T,? extends R> f,
java.util.function.Function<Cofree<W,T>,Cofree<W,R>> g) |
static <W,T> Cofree<W,T> |
unfold(Functor<W> functor,
T b,
java.util.function.Function<? super T,? extends Higher<W,T>> fn) |
<R> Eval<R> |
visit(Traverse<W> traverse,
java.util.function.BiFunction<T,Higher<W,R>,Eval<R>> fn) |
<M,R> Higher<M,R> |
visitM(Traverse<W> traverse,
Monad<M> monad,
java.util.function.BiFunction<? super T,? super Higher<W,R>,Higher<M,R>> fn,
NaturalTransformation<Witness.eval,M> inclusion) |