HH\Lib\Dict\from_keys

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

Returns a new dict where each value is the result of calling the given function on the corresponding key

namespace HH\Lib\Dict;

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

Parameters