SetAccess::remove

Removes the provided value from the current Set.

Description

public function remove(
  Tm $m,
): this

Removes the provided value from the current Set.

If the value is not in the current Set, the Set is unchanged.

It returns a shallow copy of the current Set, meaning changes made to the current Set will be reflected in the returned Set.

Parameters

  • Tm $m - The value to remove.

Return Values

  • this - A shallow copy of the current Set.