##// END OF EJS Templates
baseset: implement a fastasc and fastdesc...
Pierre-Yves David -
r22826:4ffb327e default
parent child Browse files
Show More
@@ -2332,6 +2332,18 b' class baseset(abstractsmartset):'
2332 self._list = data
2332 self._list = data
2333 self._set = None
2333 self._set = None
2334
2334
2335 @util.propertycache
2336 def _asclist(self):
2337 asclist = self._list[:]
2338 asclist.sort()
2339 return asclist
2340
2341 def fastasc(self):
2342 return iter(self._asclist)
2343
2344 def fastdesc(self):
2345 return reversed(self._asclist)
2346
2335 def set(self):
2347 def set(self):
2336 """Returns a set or a smartset containing all the elements.
2348 """Returns a set or a smartset containing all the elements.
2337
2349
General Comments 0
You need to be logged in to leave comments. Login now