def __xor__(self, other): """ :param iterable other: Other items. :returns: The symmetric difference of the items in this set and those in other. Example: >>> FrozenSortedSet([1, 3, 2]) ^ [3, 1, 5] FrozenSortedSet([2, 5]) """ return self.__class__(FrozenSetTree._ext_union(self, other, 3), self._init_info.key_type, self._init_info.alg, self._init_info.key, self._init_info.compare, self._init_info.updator)
def __and__(self, other): """ :param iterable other: Other items. :returns: The intersection of the items in this set and those in other. Example: >>> FrozenSortedSet([1, 3, 2]) & [3, 1] FrozenSortedSet([1, 3]) """ return self.__class__(FrozenSetTree._ext_union(self, other, 1), self._init_info.key_type, self._init_info.alg, self._init_info.key, self._init_info.compare, self._init_info.updator)
def __xor__(self, other): """ :param iterable other: Other items. :returns: The symmetric difference of the items in this set and those in other. Example: >>> FrozenSortedSet([1, 3, 2]) ^ [3, 1, 5] FrozenSortedSet([2, 5]) """ return self.__class__( FrozenSetTree._ext_union(self, other, 3), self._init_info.key_type, self._init_info.alg, self._init_info.key, self._init_info.compare, self._init_info.updator)
def __and__(self, other): """ :param iterable other: Other items. :returns: The intersection of the items in this set and those in other. Example: >>> FrozenSortedSet([1, 3, 2]) & [3, 1] FrozenSortedSet([1, 3]) """ return self.__class__( FrozenSetTree._ext_union(self, other, 1), self._init_info.key_type, self._init_info.alg, self._init_info.key, self._init_info.compare, self._init_info.updator)