klyn.collections.HashMap.HashMap
constructor
public HashMap(keys as IList<K>, values as IList<V>):
Description

Creates a new HashMap from key-value pairs.

Extra keys or values are ignored when both lists do not have the same length.

Parameters
ParameterDescription
keysList of keys.
valuesList of values.
Example
import klyn.collections

keys = ["a", "b", "c"]
values = [1, 2, 3]
map = HashMap<String, Int>(keys, values)