HH\Lib\Dict\count_values

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

Returns a new dict mapping each value to the number of times it appears in the given Traversable

namespace HH\Lib\Dict;

function count_values<Tv as arraykey>(
    Traversable<Tv> $values,
): dict<Tv, int>;

Parameters