merge method

Map<K, V> merge(
  1. Map<K, V> other
)

Implementation

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