equal
deleted
inserted
replaced
2815 def __and__(self, x): |
2815 def __and__(self, x): |
2816 return orderedlazyset(self, x.__contains__, |
2816 return orderedlazyset(self, x.__contains__, |
2817 ascending=self.isascending()) |
2817 ascending=self.isascending()) |
2818 |
2818 |
2819 def __sub__(self, x): |
2819 def __sub__(self, x): |
2820 if isinstance(x, baseset): |
|
2821 x = x.set() |
|
2822 filterfunc = x.__contains__ |
2820 filterfunc = x.__contains__ |
2823 return orderedlazyset(self, lambda r: not filterfunc(r), |
2821 return orderedlazyset(self, lambda r: not filterfunc(r), |
2824 ascending=self.isascending()) |
2822 ascending=self.isascending()) |
2825 |
2823 |
2826 def __add__(self, x): |
2824 def __add__(self, x): |