Show More
@@ -2388,14 +2388,6 b' class baseset(abstractsmartset):' | |||
|
2388 | 2388 | This is part of the mandatory API for smartset.""" |
|
2389 | 2389 | return baseset([y for y in self if y in other]) |
|
2390 | 2390 | |
|
2391 | def __add__(self, other): | |
|
2392 | """Returns a new object with the union of the two collections. | |
|
2393 | ||
|
2394 | This is part of the mandatory API for smartset.""" | |
|
2395 | s = self.set() | |
|
2396 | l = [r for r in other if r not in s] | |
|
2397 | return baseset(list(self) + l) | |
|
2398 | ||
|
2399 | 2391 | def isascending(self): |
|
2400 | 2392 | """Returns True if the collection is ascending order, False if not. |
|
2401 | 2393 |
General Comments 0
You need to be logged in to leave comments.
Login now