HH\ImmSet::contains

Determines if the specified value is in the current ImmSet

public function contains(
  arraykey $val,
): bool;

Parameters

  • arraykey $val

Returns

  • bool - true if the specified value is present in the current ImmSet; false otherwise.

Examples

See [Set::contains](</hack/reference/class/Set/contains/#examples>) for usage examples.