public HashMapSync(map as MapCollection<K, V>):
Creates a synchronized hash map from another map.
| Parameter | Description |
|---|---|
map | The map to copy key-value pairs from. |
import klyn.collections
source = {"a": 1, "b": 2}
copy = HashMapSync<String, Int>(source)