code: public static <T, R> Map<R, T> merge(Stream<Map<R, T>> stream) {
          return stream.collect(HashMap::new, Map::putAll, Map::putAll);
      }
docs: Merge map.
  
  @param <T>    the type parameter
  @param <R>    the type parameter
  @param stream the stream
  @return the map