Map<K, V> merge(Map<K, V> other) { Map<K, V> map = {}; map.addAll(this); map.addAll(other); return map; }