HH\Lib\Dict\merge

This API is part of the Hack Standard Library, not HHVM itself.

Merges multiple KeyedTraversables into a new dict

namespace HH\Lib\Dict;

function merge<Tk as arraykey, Tv>(
  KeyedTraversable<Tk, Tv> $first,
  KeyedTraversable<Tk, Tv> ...$rest,
): dict<Tk, Tv>;

In the case of duplicate keys, later values will overwrite the previous ones.

Parameters