HH\Map::remove

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

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

This method is interchangeable with removeKey().

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

Parameters

  • Tk $key

Return Values