public static class General.GeneralTraverseByTraverse<CRE,C2,A,B> extends java.lang.Object implements TraverseByTraverse<CRE>
Constructor and Description |
---|
GeneralTraverseByTraverse() |
Modifier and Type | Method and Description |
---|---|
<T,R> com.aol.cyclops.hkt.alias.Higher<CRE,R> |
ap(com.aol.cyclops.hkt.alias.Higher<CRE,java.util.function.Function<T,R>> fn,
com.aol.cyclops.hkt.alias.Higher<CRE,T> apply) |
<T,R> com.aol.cyclops.hkt.alias.Higher<CRE,R> |
map(java.util.function.Function<? super T,? extends R> fn,
com.aol.cyclops.hkt.alias.Higher<CRE,T> ds)
Transform the supplied data structure using the supplied transformation function
|
<C2,T,R> com.aol.cyclops.hkt.alias.Higher<C2,com.aol.cyclops.hkt.alias.Higher<CRE,R>> |
traverseA(Applicative<C2> applicative,
java.util.function.Function<? super T,? extends com.aol.cyclops.hkt.alias.Higher<C2,R>> fn,
com.aol.cyclops.hkt.alias.Higher<CRE,T> ds) |
<T> com.aol.cyclops.hkt.alias.Higher<CRE,T> |
unit(T value)
Create a new instance of the core type (e.g.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sequenceA
ap2, ap3, apBiFn, curry2, narrow, narrow2, narrow3, narrowBiFn
public <T,R> com.aol.cyclops.hkt.alias.Higher<CRE,R> ap(com.aol.cyclops.hkt.alias.Higher<CRE,java.util.function.Function<T,R>> fn, com.aol.cyclops.hkt.alias.Higher<CRE,T> apply)
ap
in interface Applicative<CRE>
public <T,R> com.aol.cyclops.hkt.alias.Higher<CRE,R> map(java.util.function.Function<? super T,? extends R> fn, com.aol.cyclops.hkt.alias.Higher<CRE,T> ds)
Functor
ListX<Integer> listx = ListX.of(1,2,3);
ListType<Integer> mapped1 =Lists.functor().map(a->a+1, ListType.widen(listx));
mapped1.add(1);
ListX<Integer> listxMapped = mapped1.list();
public <T> com.aol.cyclops.hkt.alias.Higher<CRE,T> unit(T value)
Unit
public <C2,T,R> com.aol.cyclops.hkt.alias.Higher<C2,com.aol.cyclops.hkt.alias.Higher<CRE,R>> traverseA(Applicative<C2> applicative, java.util.function.Function<? super T,? extends com.aol.cyclops.hkt.alias.Higher<C2,R>> fn, com.aol.cyclops.hkt.alias.Higher<CRE,T> ds)