Traversal.Instance<A2,B2>
Constructor and Description |
---|
ListTraversal() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
toString() |
<F extends K1> |
wander(Applicative F applicative,
(A) -> F<B> input)
Takes the given
Applicative -effectful function over the field types and produces an effectful function
over the object types. |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compose, composeUnchecked, upCast
public <F extends K1> (List<A>) -> F<List<B>> wander(Applicative F applicative, (A) -> F<B> input)
Wander
Applicative
-effectful function over the field types and produces an effectful function
over the object types. The returned function traverses the structure S
, applies the transformation to
each field in S
, and combines the resulting effects into a single effect containing the transformed
object T
.wander
in interface Wander<List<A>::A,List<B>::B>
F
- The functor produced by the given function.applicative
- The Applicative
type class instance defining the behavior of F
.input
- A function from the input field type to the output field type.