##// END OF EJS Templates
revset: added filter method to _addset...
Lucas Moscovicz -
r20728:1c8b62c0 default
parent child Browse files
Show More
@@ -2392,6 +2392,11 class _addset(object):
2392 self._genlist = baseset(self._iterator())
2392 self._genlist = baseset(self._iterator())
2393 return self._genlist
2393 return self._genlist
2394
2394
2395 def filter(self, condition):
2396 if self._ascending is not None:
2397 return orderedlazyset(self, condition, ascending=self._ascending)
2398 return lazyset(self, condition)
2399
2395 def _iterator(self):
2400 def _iterator(self):
2396 """Iterate over both collections without repeating elements
2401 """Iterate over both collections without repeating elements
2397
2402
General Comments 0
You need to be logged in to leave comments. Login now