equal
deleted
inserted
replaced
2417 def descending(self): |
2417 def descending(self): |
2418 if self._ascending: |
2418 if self._ascending: |
2419 self.reverse() |
2419 self.reverse() |
2420 |
2420 |
2421 def __and__(self, x): |
2421 def __and__(self, x): |
2422 return orderedlazyset(self, lambda r: r in x, |
2422 return orderedlazyset(self, x.__contains__, |
2423 ascending=self._ascending) |
2423 ascending=self._ascending) |
2424 |
2424 |
2425 def __sub__(self, x): |
2425 def __sub__(self, x): |
2426 return orderedlazyset(self, lambda r: r not in x, |
2426 return orderedlazyset(self, lambda r: r not in x, |
2427 ascending=self._ascending) |
2427 ascending=self._ascending) |