HH\Lib\Keyset\map_with_key

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

This function is available as Keyset\map_with_key() in Facebook's www repository.

Returns a new keyset where each value is the result of calling the given function on the original key and value

Description

namespace HH\Lib\Keyset;

function map_with_key<Tk, Tv1, Tv2 as arraykey>(
  KeyedTraversable<Tk, Tv1> $traversable,
  (function(Tk,Tv1):Tv2) $value_func,
): keyset<Tv2>;

Parameters