HH\Lib\Dict\reverse

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

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

Returns a new dict with the original key/value pairs in reversed iteration order

Description

namespace HH\Lib\Dict;

function reverse<Tk as arraykey, Tv>(
  KeyedTraversable<Tk, Tv> $traversable,
): dict<Tk, Tv>;

Parameters