HH\Lib\Dict\reverse

Requires the Hack Standard Library to be installed.

Returns a new dict with the original entries in reversed iteration order

namespace HH\Lib\Dict;

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

Parameters