src/DS/Set/AbstractSet.php
public function xor(Set $set): SetInterface
    {
        $set = new \DS\Set($set);
        $items = $this->items->xor($set);

        return $this->duplicate($items);
    }
public function xor(Set $set): SetInterface
    {
        $set = new \DS\Set($set);
        $items = $this->items->xor($set);

        return $this->duplicate($items);
    }
public function xor ( Set $ set ) : SetInterface { $ set = new \ DS \ Set ( $ set ) ; $ items = $ this -> items -> xor ( $ set ) ; return $ this -> duplicate ( $ items ) ; }
Creates a new set using values in either this set or in another set,
but not in both.

Formally: A ⊖ B = {x : x ∈ (A \ B) ∪ (B \ A)}

@param \PlanB\DS\Set $set

@return \PlanB\DS\Set\SetInterface
Creates a new set using values in either this set or in another set but not in both .