src/Map.php
public function xor(Map $map): Map
    {
        return $this->merge($map)->filter(function($key) use ($map) {
            return $this->hasKey($key) ^ $map->hasKey($key);
        });
    }
public function xor(Map $map): Map
    {
        return $this->merge($map)->filter(function($key) use ($map) {
            return $this->hasKey($key) ^ $map->hasKey($key);
        });
    }
public function xor ( Map $ map ) : Map { return $ this -> merge ( $ map ) -> filter ( function ( $ key ) use ( $ map ) { return $ this -> hasKey ( $ key ) ^ $ map -> hasKey ( $ key ) ; } ) ; }
Creates a new map using keys of either the current instance or of another
map, but not of both.

@param Map $map

@return Map A new map containing keys in the current instance as well
as another map, but not in both.
Creates a new map using keys of either the current instance or of another map but not of both .