##// END OF EJS Templates
lazyset: directly use __contains__ instead of a lambda...
Pierre-Yves David -
r21214:0952904d stable
parent child Browse files
Show More
@@ -2356,7 +2356,7 b' class lazyset(object):'
2356 yield x
2356 yield x
2357
2357
2358 def __and__(self, x):
2358 def __and__(self, x):
2359 return lazyset(self, lambda r: r in x)
2359 return lazyset(self, x.__contains__)
2360
2360
2361 def __sub__(self, x):
2361 def __sub__(self, x):
2362 return lazyset(self, lambda r: r not in x)
2362 return lazyset(self, lambda r: r not in x)
General Comments 0
You need to be logged in to leave comments. Login now