HH\Map::removeKey

Removes the specified key (and associated value) from the current Map

public function removeKey(
  Tk $key,
): Map<Tk, Tv>;

This method is interchangeable with remove().

Future changes made to the current Map ARE reflected in the returned Map, and vice-versa.

Parameters

  • Tk $key

Return Values