map Fetching
inline fun <In : Out, Out : Any> Fetch<In>.mapFetching(transform: Fetching<In>.() -> Out?): Fetch<Out>
Transforms Fetching.cache in place.
This is a convenience method for fold, that only transforms one state and wraps the output as Fetching.
If In != Out, then Out = the closest common ancestor of In and Out.
Receiver
The Fetch to transform.
Return
Parameters
In
The type of the Fetch value.
Out
The type of the transformed value.
transform
The lambda to transform the Fetching state.