klyn.collections.HashMap.HashMap
constructor
public HashMap(map as MapCollection<K, V>):
Description

Creates a new HashMap from another map.

Parameters
  • map The map to copy key-value pairs from. ```klyn import klyn.collections source = {"a": 1, "b": 2} copy = HashMap<String, Int>(source) ```