map
fun <T, M1, M2> MutableSite<T, M1>.map(f: (M1) -> M2): MutableSite<T, M2>
Content copied to clipboard
Transforms a MutableSite to make it return a different kind of model. This may be particularly useful when creating abstractions backed by a MutableSite that should not expose some implementation details.
Parameters
f
the mapping function.
T
the type of the events.
M1
the type of the original model.
M2
the type of the transformed model.