HH\ImmMap::contains

Determines if the specified key is in the current ImmMap

Description

public function contains<Tu super Tk>(
  Tu $k,
): bool;

This function is interchangeable with containsKey().

Parameters

  • $k - The key to check.

Return Values

  • bool - true if the specified key is present in the current ImmMap; false otherwise.

Examples

See Map::contains for usage examples.