merge


Description:

public static HashMap<K,V> merge<K,V> (HashMap<K,V> a, HashMap<K,V> b, HashFunc<K> hash_func, EqualFunc<K> equal_func)

Merges two maps into a new map. When both maps contain the same key, the value from the second map takes priority.

Parameters:

a

the base map.

b

the override map.

hash_func

hash function for key type K.

equal_func

equality function for key type K.

Returns:

a new merged map.