HH\Lib\Dict\associate

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

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

namespace HH\Lib\Dict;

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

Parameters