mergeMapsTo

fun <K, V, M : MutableMap<in K, in V>> Provider<List<Map<K, V>>>.mergeMapsTo(makeMap: (size: Int) -> M): Provider<M>

Creates and returns a new Provider that merges all Maps obtained from this into a single Map, which is created by the makeMap function.

makeMap should be a pure function.

The returned provider will only be stored in a WeakReference in the parent provider (this).