flat Map Prefetch
inline fun <In : Out, Out : Any> Fetch<In>.flatMapPrefetch(transform: Prefetch.() -> Fetch<Out>): Fetch<Out>
Flatmap a Prefetch state.
This is a convenience method for fold, that only transforms one state and forces the output to be a Fetch variant.
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 Prefetch state.