tryRemove

tryRemove(value: MemberType): Boolean, lockReceiver, updating;

The tryRemove method of the Set class attempts to remove the value specified in the value parameter from the set collection if it is present. It returns true if the value was successfully removed; otherwise it returns false.

2020.0.01 and higher