flat Map Finished
inline fun <In : Out, Out : Any> Fetch<In>.flatMapFinished(transform: Finished<In>.() -> Fetch<Out>): Fetch<Out>
Flatmap a Finished 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 Finished state.