---
title: "toMutableStateMap"
description: "Create an instance of [MutableMap]<K, V> from a collection of pairs that is observable and can be
snapshot."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
public fun <K, V> Iterable<Pair<K, V>>.toMutableStateMap(): SnapshotStateMap<K, V>
```


Create an instance of `MutableMap`<K, V> from a collection of pairs that is observable and can be
snapshot.



