HH\Lib\Dict\associate

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

This function is available as Dict\associate() in Facebook's www repository.

Returns a new dict where each element in $keys maps to the corresponding element in $values

Description

namespace HH\Lib\Dict;

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

Parameters