HH\Lib\Dict\count_values

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

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

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

Description

namespace HH\Lib\Dict;

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

Parameters