Show More
@@ -2444,6 +2444,20 b' class lazyset(abstractsmartset):' | |||||
2444 | if cond(x): |
|
2444 | if cond(x): | |
2445 | yield x |
|
2445 | yield x | |
2446 |
|
2446 | |||
|
2447 | @property | |||
|
2448 | def fastasc(self): | |||
|
2449 | it = self._subset.fastasc | |||
|
2450 | if it is None: | |||
|
2451 | return None | |||
|
2452 | return lambda: self._iterfilter(it()) | |||
|
2453 | ||||
|
2454 | @property | |||
|
2455 | def fastdesc(self): | |||
|
2456 | it = self._subset.fastdesc | |||
|
2457 | if it is None: | |||
|
2458 | return None | |||
|
2459 | return lambda: self._iterfilter(it()) | |||
|
2460 | ||||
2447 | def __and__(self, x): |
|
2461 | def __and__(self, x): | |
2448 | return lazyset(self, x.__contains__) |
|
2462 | return lazyset(self, x.__contains__) | |
2449 |
|
2463 |
General Comments 0
You need to be logged in to leave comments.
Login now