HH\Lib\Dict\fill_keys

Requires the Hack Standard Library to be installed.

Returns a new dict where all the given keys map to the given value

namespace HH\Lib\Dict;

function fill_keys<Tk as arraykey, Tv>(
    Traversable<Tk> $keys,
  Tv $value,
): dict<Tk, Tv>;

Parameters