Show More
@@ -2413,6 +2413,12 b' class _addset(object):' | |||
|
2413 | 2413 | if self._ascending: |
|
2414 | 2414 | self.reverse() |
|
2415 | 2415 | |
|
2416 | def __and__(self, other): | |
|
2417 | filterfunc = other.__contains__ | |
|
2418 | if self._ascending is not None: | |
|
2419 | return orderedlazyset(self, filterfunc, ascending=self._ascending) | |
|
2420 | return lazyset(self, filterfunc) | |
|
2421 | ||
|
2416 | 2422 | def _iterator(self): |
|
2417 | 2423 | """Iterate over both collections without repeating elements |
|
2418 | 2424 |
General Comments 0
You need to be logged in to leave comments.
Login now