klyn.collections.HashMapSync.HashMapSync
constructor

    public HashMapSync(keys as IList<K>, values as IList<V>):

Description

Creates a synchronized hash map from key-value pairs.

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

Parameters

Parameter | Description
--- | ---
`keys` | List of keys.
`values` | List of values.

Example

    import klyn.collections

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