public function remove($element) : Set { return $this->removeAll([$element]); }
public function testRemove() { $set = new Set(['B', 'A', 2, 1]); $this->assertEquals((new Set([1, 2, 2, 2, 'B']))->toArray(), $set->remove('A')->toArray()); }