public function remove($x) : Set { unset($this->A[$this->getKey($x)]); return $this; }
/** * @dataProvider dataProviderForRemove */ public function testRemove(array $A, $x, array $R) { $setA = new Set($A); $setR = new Set($R); $setA->remove($x); $this->assertEquals($setR, $setA); }