S
- The input object type.T
- The output object type.A
- The input field type.B
- The output field type.public interface Wander<S,T,A,B>
Traversable
for any object types, not just functors.
This interface is used in Traversal
to implement optics that visit each field of a traversable structure.Traversable
Modifier and Type | Method and Description |
---|---|
<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. |
<F extends K1> (S) -> F<T> wander(Applicative F applicative, (A) -> F<B> input)
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
.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.